Skip to content

Commit

Permalink
Merge pull request #398 from reeseconor/main
Browse files Browse the repository at this point in the history
Add support for caching dependencies between GitHub Action runs
  • Loading branch information
bentranter authored Oct 30, 2020
2 parents 6929777 + 92b37da commit a3919b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Format
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
if: matrix.os == 'ubuntu-latest'
- name: Test
Expand Down

0 comments on commit a3919b4

Please sign in to comment.