diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cb9f1c..5fd3a8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,17 +1,24 @@ name: Test -on: [push, pull_request] + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + jobs: test: strategy: matrix: - go-version: [1.16.x] + go-version: ['latest', '1.16.x'] runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - + name: Install Go + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Test + - + name: Test run: go test -v -race ./...