From 27ff2f3868c8a5c876fe27bbfcd0b6f0255a47cb Mon Sep 17 00:00:00 2001 From: Michael Fridman Date: Sat, 9 Sep 2023 18:22:02 -0400 Subject: [PATCH] Update ci workflows (add go1.21) (#345) --- .github/workflows/build.yml | 7 +++---- .github/workflows/lint.yml | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ab081f..e799f88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,16 +13,15 @@ jobs: strategy: fail-fast: false matrix: - go: ["1.18.x", "1.19.x", "1.20.x"] + go: ["1.19", "1.20", "1.21"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v4 with: go-version: "${{ matrix.go }}" check-latest: true - cache: true - name: Check Go code formatting run: | if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then @@ -34,7 +33,7 @@ jobs: run: | go install github.com/mfridman/tparse@latest go vet ./... - go test -v -race -count=1 -json -coverpkg=$(go list ./...) ./... | tee output.json | tparse -follow -notests || true + go test -v -race -count=1 -json -cover ./... | tee output.json | tparse -follow -notests || true tparse -format markdown -file output.json -all > $GITHUB_STEP_SUMMARY go build ./... coverage: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e6ef00b..eb04ee7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,13 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v4 with: - go-version: "1.20.x" + go-version: "1.21" check-latest: true - cache: true - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: