Codebase list golang-github-vbauerster-mpb / 43ed067
test-cache job Vladimir Bauer 4 years ago
1 changed file(s) with 28 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
77 os: [ubuntu-latest, macos-latest, windows-latest]
88 runs-on: ${{ matrix.os }}
99 steps:
10 - name: Install Go
10 - name: Setup Go
1111 uses: actions/setup-go@v2
1212 with:
1313 go-version: ${{ matrix.go-version }}
1515 uses: actions/checkout@v2
1616 - name: Test
1717 run: go test -race ./...
18
19 test-cache:
20 runs-on: ubuntu-latest
21 steps:
22 - name: Setup Go
23 uses: actions/setup-go@v2
24 with:
25 go-version: 1.17.x
26 - name: Checkout code
27 uses: actions/checkout@v2
28 - uses: actions/cache@v2
29 with:
30 # In order:
31 # * Module download cache
32 # * Build cache (Linux)
33 # * Build cache (Mac)
34 # * Build cache (Windows)
35 path: |
36 ~/go/pkg/mod
37 ~/.cache/go-build
38 ~/Library/Caches/go-build
39 %LocalAppData%\go-build
40 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
41 restore-keys: |
42 ${{ runner.os }}-go-
43 - name: Test
44 run: go test ./...