Skip to content

Commit

Permalink
Fix CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Dec 7, 2019
1 parent 96711d3 commit 939192f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,41 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
path: ~/work/_temp/_github_home/gopath
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: make fmt
uses: ./ci/image
with:
args: make fmt
env:
GOPATH: /github/home/gopath

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
path: ~/work/_temp/_github_home/gopath
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: make lint
uses: ./ci/image
with:
args: make lint
env:
GOPATH: /github/home/gopath

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
path: ~/work/_temp/_github_home/gopath
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
Expand All @@ -48,6 +52,7 @@ jobs:
args: make test
env:
COVERALLS_TOKEN: ${{ secrets.github_token }}
GOPATH: /github/home/gopath
- name: Upload coverage.html
uses: actions/upload-artifact@master
with:
Expand Down

0 comments on commit 939192f

Please sign in to comment.