mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 14:07:02 +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
|
- name: git config
|
||||||
run: git config --global url.https://${{ secrets.ANYTYPE_PAT }}@github.com/.insteadOf https://github.com/
|
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
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod
|
${{ steps.go-cache-paths.outputs.GOCACHE }}
|
||||||
~/.cache/go-build
|
${{ steps.go-cache-paths.outputs.GOMODCACHE }}
|
||||||
~/Library/Caches/go-build
|
|
||||||
~\AppData\Local\go-build
|
|
||||||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-${{ matrix.go-version }}-
|
${{ runner.os }}-go-${{ matrix.go-version }}-
|
||||||
|
# }}
|
||||||
|
|
||||||
- name: deps
|
- name: deps
|
||||||
run: make deps
|
run: make deps
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue