mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
.github/workflows/coverage.yml add go-cache-paths
This commit is contained in:
parent
5b7cf0b902
commit
dcc7ff372d
1 changed files with 8 additions and 4 deletions
12
.github/workflows/coverage.yml
vendored
12
.github/workflows/coverage.yml
vendored
|
@ -17,16 +17,20 @@ jobs:
|
|||
- name: git config
|
||||
run: git config --global url.https://${{ secrets.ANYTYPE_PAT }}@github.com/.insteadOf https://github.com/
|
||||
|
||||
# cache {{
|
||||
- id: go-cache-paths
|
||||
run: |
|
||||
echo "::set-output name=GOCACHE::$(go env GOCACHE)"
|
||||
echo "::set-output name=GOMODCACHE::$(go env GOMODCACHE)"
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/go/pkg/mod
|
||||
~/.cache/go-build
|
||||
~/Library/Caches/go-build
|
||||
~\AppData\Local\go-build
|
||||
${{ steps.go-cache-paths.outputs.GOCACHE }}
|
||||
${{ steps.go-cache-paths.outputs.GOMODCACHE }}
|
||||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-${{ matrix.go-version }}-
|
||||
# }}
|
||||
|
||||
- name: deps
|
||||
run: make deps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue