Skip to content

Commit

Permalink
chore(ci): Add caching to CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
zerok committed Dec 10, 2021
1 parent d210f8e commit 57f1b1a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '^1.17'
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-
- run: go test ./... -v
build:
runs-on: ubuntu-latest
Expand All @@ -23,5 +30,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '^1.17'
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-
- run: go build

0 comments on commit 57f1b1a

Please sign in to comment.