diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..fbc7e5c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: Tests + +on: + push: + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + go-version: [ 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x ] + + name: Go ${{ matrix.go-version }} + + steps: + - name: Checkout the code + uses: actions/checkout@v2 + + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Run the tests + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5026229..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go -go_import_path: github.com/messagebird/go-rest-api/v6 -go: - - "1.14" - - "1.15" - - stable - - master -matrix: - allow_failures: - - go: master