diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 607432a1a5..91e742c30b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: 1.20.x - run: go version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a731c5128b..c5d29b8ff2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,24 +13,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Get Go cache paths - id: go-env - run: | - echo "::set-output name=cache::$(go env GOCACHE)" - echo "::set-output name=modcache::$(go env GOMODCACHE)" - - name: Set up Go cache - uses: actions/cache@v3 - with: - key: golangci-lint-${{ runner.os }}-go-${{ hashFiles('go.mod') }} - restore-keys: golangci-lint-${{ runner.os }}-go- - path: | - ${{ steps.go-env.outputs.cache }} - ${{ steps.go-env.outputs.modcache }} - - run: go version - run: go test ./... - run: go test -race ./...