From 3beb0fb251c79191e1cde2e422dda73493ba9d3d Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 13 Jul 2024 12:05:58 +0200 Subject: [PATCH] ci: upgrade workflows --- .github/workflows/lint.yml | 9 ++++----- .github/workflows/test.yml | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a614748..3ddf09e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,10 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.22.x' - - uses: golangci/golangci-lint-action@v3 + go-version: "1.22.x" + - uses: golangci/golangci-lint-action@v6 with: - version: v1.57 - skip-go-installation: true + version: "v1.59" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 767f58d..af3c656 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test and Coverage +name: Test on: push: tags: @@ -12,12 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.22.x' + go-version: "1.22.x" - name: Run test with coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}