From cbed00787a0ac7b313528c64a3e97eaac43d0930 Mon Sep 17 00:00:00 2001 From: Matthew McPherrin Date: Mon, 13 Nov 2023 21:34:00 -0500 Subject: [PATCH] Update github actions (#65) Test on two latest Go versions. Release with 1.21.4. Update the actions to their latest versions --- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yaml | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7224861..d7c3822 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,11 @@ jobs: permissions: contents: read steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: - go-version: '1.20.1' + go-version: '1.21.4' - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: persist-credentials: false diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d7c7b11..1c8cf49 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,16 +15,18 @@ jobs: test: strategy: matrix: - go-version: [1.20.x] + go-version: + - 1.20.x + - 1.21.x os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - 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 + uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: @@ -32,7 +34,7 @@ jobs: - name: go coverage run: | go test -mod=readonly -v -race -covermode=atomic -coverprofile=coverage.out ./... - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v3 if: success() with: file: ./coverage.out