Skip to content

Commit

Permalink
chore: update GitHub actions cache
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Feb 5, 2024
1 parent 600c46b commit c85e9d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ jobs:
path: |
${{ steps.go-env.outputs.GO_CACHE }}
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go }}-go-ci
${{ runner.os }}-${{ matrix.go }}-go-ci-
- name: Run unit tests for packages
run: go test $(go list ./... | tail -n +2)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_gc_opt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ jobs:
path: |
${{ steps.go-env.outputs.GO_CACHE }}
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go }}-go-ci
${{ runner.os }}-${{ matrix.go }}-go-ci-
- name: Run unit tests for packages
run: go test $(go list ./... | tail -n +2)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_poll_opt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ jobs:
path: |
${{ steps.go-env.outputs.GO_CACHE }}
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go }}-go-ci
${{ runner.os }}-${{ matrix.go }}-go-ci-
- name: Run unit tests for packages
run: go test $(go list ./... | tail -n +2)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_poll_opt_gc_opt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ jobs:
path: |
${{ steps.go-env.outputs.GO_CACHE }}
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go }}-go-ci
${{ runner.os }}-${{ matrix.go }}-go-ci-
- name: Run unit tests for packages
run: go test $(go list ./... | tail -n +2)
Expand Down

0 comments on commit c85e9d2

Please sign in to comment.