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
11 changes: 11 additions & 0 deletions .github/workflows/gen_coverage_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,21 @@ jobs:
with:
token: ${{ secrets.GH_CQ_BOT }}
- name: Set up Go 1.x
id: setup-go
uses: actions/setup-go@v6
with:
go-version: "1.25"
cache: false
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
${{ runner.os }}-go-
- name: Generate Coverage Report
run: make coverage

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/go_mod_tidy_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ jobs:
with:
token: ${{ secrets.GH_CQ_BOT }}
- name: Set up Go 1.x
id: setup-go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: false
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
${{ runner.os }}-go-
- name: Run go mod tidy
working-directory: examples/${{ matrix.plugin }}
run: go mod tidy
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/lint_golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,20 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
id: setup-go
with:
go-version-file: go.mod
cache: false
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,27 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Set up Go 1.x
id: setup-go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: false
- name: Determine Go cache directories
id: go-cache
shell: bash
run: |
echo "gocache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "gomodcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
${{ steps.go-cache.outputs.gomodcache }}
${{ steps.go-cache.outputs.gocache }}
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
${{ runner.os }}-go-
- run: go mod download
- run: go build ./...
- name: Run tests
Expand Down