fix workflow?
This commit is contained in:
parent
3a150afa71
commit
02bbd21ab9
@ -1,5 +1,5 @@
|
|||||||
name: checks
|
name: checks
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
@ -17,20 +17,20 @@ jobs:
|
|||||||
id: cache-go-path
|
id: cache-go-path
|
||||||
uses: https://github.com/actions/cache@v3
|
uses: https://github.com/actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /go_path
|
path: $HOME/go_path
|
||||||
key: go_path-${{ github.repository }}-${{ github.ref_name }}
|
key: go_path-${{ github.repository }}-${{ github.ref_name }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
go_path-${{ github.repository }}-
|
go_path-${{ github.repository }}-
|
||||||
go_path-
|
go_path-
|
||||||
- name: cache go cache
|
- name: cache go cache
|
||||||
id: cache-go-cache
|
id: cache-go-cache
|
||||||
uses: https://github.com/actions/cache@v3
|
uses: https://github.com/actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /go_cache
|
path: $HOME/go_cache
|
||||||
key: go_cache-${{ github.repository }}-${{ github.ref_name }}
|
key: go_cache-${{ github.repository }}-${{ github.ref_name }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
go_cache-${{ github.repository }}-
|
go_cache-${{ github.repository }}-
|
||||||
go_cache-
|
go_cache-
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.20
|
go-version: 1.20
|
||||||
@ -40,4 +40,4 @@ jobs:
|
|||||||
- name: vet
|
- name: vet
|
||||||
run: go vet
|
run: go vet
|
||||||
- name: test
|
- name: test
|
||||||
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user