From b2770f376d46a4e5cdb316051ad75e71a6cbd999 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Mon, 14 Aug 2023 22:55:34 -0400 Subject: [PATCH] ci: use setup-go v4 (#33) --- .github/workflows/go.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4114f98..d9b5f33 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,9 +22,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: latest args: --timeout=30m @@ -33,16 +33,16 @@ jobs: name: Test strategy: matrix: - go-version: [ 1.19.x, 1.20.x ] + go-version: [ 1.20.x, 1.21.x ] platform: [ ubuntu-latest, macos-latest, windows-latest ] runs-on: ${{ matrix.platform }} steps: + - name: Checkout code + uses: actions/checkout@v3 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - name: Run tests with coverage run: go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic ./... - name: Upload coverage report to Codecov