Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 20 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,25 @@ jobs:
name: Quality (Lint & Vuln)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.25.x"
cache: true
# Cache based on all go.sum files in the workspace to capture changes in examples/submodules
cache-dependency-path: |
**/go.sum
go.work.sum
cache-dependency-path: "**/*.sum"

- name: Cache Tools Binaries
uses: actions/cache@v4
with:
path: |
~/go/bin
~/.cache/golangci-lint
# Key depends ONLY on tools/tools.go and the root go.sum (where tools versions are pinned)
# This prevents tool rebuilds when app dependencies change
key: ${{ runner.os }}-tools-${{ hashFiles('tools/tools.go', 'go.sum') }}
restore-keys: |
${{ runner.os }}-tools-
# - name: Cache Tools and Modules
# uses: actions/cache@v4
# with:
# path: |
# ~/go/bin
# ~/go/pkg/mod
# ~/.cache/golangci-lint
# # Key based on tools/tools.go and go.sum (tool versions only)
# # This cache is stable: only invalidates when tools change, not app dependencies
# # Caches both binaries and modules to prevent re-downloading on every run
# key: ${{ runner.os }}-tools-${{ hashFiles('tools/tools.go', 'go.sum') }}
# restore-keys: |
# ${{ runner.os }}-tools-

- name: Install tools
# Use make tools to install versions pinned in go.mod/tools.go
Expand All @@ -56,15 +54,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.25.x"
cache: true
# Cache based on all go.sum files in the workspace
cache-dependency-path: |
**/go.sum
go.work.sum
tools/tools.go
go.mod
- name: Test with coverage
run: make test-coverage
- name: Upload coverage to Codecov
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
matrix:
language: ["go"]
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
- uses: actions/checkout@v6
- uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/autobuild@v3
- uses: github/codeql-action/analyze@v3
- uses: github/codeql-action/autobuild@v4
- uses: github/codeql-action/analyze@v4
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down