diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..04f1dde3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI Checks + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: + ubuntu-latest + + + strategy: + matrix: + go: ["1.17.x", "1.18.x", "stable"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + + - name: Install dependencies + run: go mod download + + - name: Build and test + run: make ci + + - name: Upload code coverage + run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f7121dc2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go -sudo: false - -go: - - "1.17.x" - - "1.18.x" - - master - -install: true - -script: - - go get -u golang.org/x/lint/golint - - make ci - -matrix: - allow_failures: - - go: master - -after_success: - - bash <(curl -s https://codecov.io/bash)