From 3e5300c8868057cbf05a2818400bc45e75eaab6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?= Date: Tue, 30 Apr 2024 09:24:51 -0500 Subject: [PATCH] Update github actions (#127) Blindly following best-practices from: - https://github.com/uber-go/zap/pull/1434/files - https://github.com/uber-go/goleak/pull/122/files --- .github/workflows/benchmark.yaml | 4 ++-- .github/workflows/cover.yaml | 8 +++++--- .github/workflows/test.yaml | 8 +++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 2e1bf68..3e23cbe 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -13,8 +13,8 @@ jobs: name: Benchmark runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' check-latest: true diff --git a/.github/workflows/cover.yaml b/.github/workflows/cover.yaml index 02cf3c0..bd380ef 100644 --- a/.github/workflows/cover.yaml +++ b/.github/workflows/cover.yaml @@ -14,10 +14,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} cache-dependency-path: '**/go.sum' @@ -29,4 +29,6 @@ jobs: run: make cover - name: Upload coverage to codecov.io - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6548222..cfecad5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} cache-dependency-path: '**/go.sum' @@ -44,7 +44,9 @@ jobs: - name: Upload coverage to codecov.io if: matrix.latest - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # TODO decide whether we want to benchmark on every run. # name: Benchmark