Codebase list golang-github-vbauerster-mpb / cd601e0
update setup-go to v4 and use its caching by default Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
2020 os: [ubuntu-latest, macos-latest, windows-latest]
2121 runs-on: ${{ matrix.os }}
2222 steps:
23 - uses: actions/setup-go@v3
23 - uses: actions/checkout@v3
24 - uses: actions/setup-go@v4
2425 with:
2526 go-version: ${{ matrix.go-version }}
26 - uses: actions/checkout@v3
27 - uses: actions/cache@v3
28 with:
29 # In order:
30 # * Module download cache
31 # * Build cache (Linux)
32 # * Build cache (Mac)
33 # * Build cache (Windows)
34 path: |
35 ~/go/pkg/mod
36 ~/.cache/go-build
37 ~/Library/Caches/go-build
38 ~\AppData\Local\go-build
39 key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
40 restore-keys: |
41 ${{ runner.os }}-go-${{ matrix.go-version }}-
4227 - run: go test -race ./...