From 346d1a56137d237bf90cfa23f3bac57d05b35f54 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 19 Jun 2026 06:08:57 +0000 Subject: [PATCH] chore: upgrade GitHub Actions to latest versions Upgrade actions to current stable versions: - actions/checkout v3 -> v4 - actions/setup-go v3 -> v5 - golangci/golangci-lint-action v3.3.1 -> v6 - codecov/codecov-action v3.1.1 -> v5 - actions/cache restore/save v3 -> v4 Closes #152 Co-authored-by: CommandCodeBot --- .github/workflows/bench.yml | 4 ++-- .github/workflows/go.yml | 8 ++++---- .github/workflows/main.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 962cfb0..eeed87c 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -16,7 +16,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # to be able to retrieve the last commit in main @@ -42,7 +42,7 @@ jobs: - name: Get benchmark JSON from main branch id: cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: ./cache/benchmark-data.json key: ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-${{ steps.system-info.outputs.cpu-model }}-go-benchmark diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f190c54..9493504 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,10 +17,10 @@ jobs: go-version: ['1.20', 'stable'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} @@ -28,7 +28,7 @@ jobs: run: go build -v ./... - name: Lint - uses: golangci/golangci-lint-action@v3.3.1 + uses: golangci/golangci-lint-action@v6 with: version: latest args: --timeout 5m @@ -37,7 +37,7 @@ jobs: run: go test -race -v ./... -coverprofile ./coverage.txt - name: Codecov - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@v5 with: files: ./coverage.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87e68ae..538418c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: @@ -44,7 +44,7 @@ jobs: id: system-info - name: Save benchmark JSON to cache - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: ./cache/benchmark-data.json # Save with commit hash to avoid "cache already exists"