File tree Expand file tree Collapse file tree 2 files changed +44
-51
lines changed
Expand file tree Collapse file tree 2 files changed +44
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ push :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - uses : actions/setup-go@v3
18+ with :
19+ go-version : ' 1.18'
20+
21+ - uses : actions/setup-python@v4
22+ with :
23+ python-version : ' 3.7'
24+
25+ - id : go-cache-paths
26+ run : |
27+ echo "::set-output name=go-build::$(go env GOCACHE)"
28+ echo "::set-output name=go-mod::$(go env GOMODCACHE)"
29+
30+ - name : Go Build Cache
31+ uses : actions/cache@v3
32+ with :
33+ path : ${{ steps.go-cache-paths.outputs.go-build }}
34+ key : ${{ runner.os }}-go-build-${{ github.sha }}
35+ restore-keys : ${{ runner.os }}-go-build-
36+
37+ - name : Go Mod Cache
38+ uses : actions/cache@v3
39+ with :
40+ path : ${{ steps.go-cache-paths.outputs.go-mod }}
41+ key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
42+ restore-keys : ${{ runner.os }}-go-mod-
43+
44+ - run : go test ./... -cover
You can’t perform that action at this time.
0 commit comments