diff --git a/.github/workflows/tidy-check.yaml b/.github/workflows/tidy-check.yaml new file mode 100644 index 0000000..03b5189 --- /dev/null +++ b/.github/workflows/tidy-check.yaml @@ -0,0 +1,37 @@ +# +# DO NOT EDIT THIS FILE +# +# It is automatically copied from https://github.com/pion/.goassets repository. +# If this repository should have package specific CI config, +# remove the repository name from .goassets/.github/workflows/assets-sync.yml. +# +# If you want to update the shared CI config, send a PR to +# https://github.com/pion/.goassets instead of this repository. +# + +name: Go mod tidy +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + Check: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v2 + - name: check + run: | + go mod download + go mod tidy + if ! git diff --exit-code + then + echo "Not go mod tidied" + exit 1 + fi diff --git a/.travis.yml b/.travis.yml index 9bd21a3..43eb708 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,30 +113,30 @@ _test_wasm_job: &test_wasm_job jobs: include: - <<: *lint_job - name: Lint 1.14 - go: 1.14 - - <<: *test_job - name: Test 1.13 - go: 1.13 + name: Lint 1.15 + go: 1.15 - <<: *test_job name: Test 1.14 go: 1.14 - - <<: *test_i386_job - name: Test i386 1.13 - env: GO_VERSION=1.13 - go: 1.14 # Go version for host environment only for `go list`. - # All tests are done on the version specified by GO_VERSION. + - <<: *test_job + name: Test 1.15 + go: 1.15 - <<: *test_i386_job name: Test i386 1.14 env: GO_VERSION=1.14 - go: 1.14 # Go version for host environment only for `go list`. + go: 1.15 # Go version for host environment only for `go list`. + # All tests are done on the version specified by GO_VERSION. + - <<: *test_i386_job + name: Test i386 1.15 + env: GO_VERSION=1.15 + go: 1.15 # Go version for host environment only for `go list`. # All tests are done on the version specified by GO_VERSION. - - <<: *test_wasm_job - name: Test WASM 1.13 - env: GO_VERSION=1.13 - <<: *test_wasm_job name: Test WASM 1.14 env: GO_VERSION=1.14 + - <<: *test_wasm_job + name: Test WASM 1.15 + env: GO_VERSION=1.15 notifications: email: false