diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b72106e..cf15bce 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,42 +1,36 @@ name: test - -on: - push: - branches: - - "**" +on: pull_request: {} - jobs: lint: name: lint runs-on: ubuntu-latest strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x] + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 - + version: v1.54 test: name: go test runs-on: ubuntu-latest strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x] + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: version: ${{ matrix.go-version }} - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run go tests env: GO111MODULE: on