Skip to content

Commit

Permalink
Merge pull request #2 from mrsndmn/ci
Browse files Browse the repository at this point in the history
Ci add cache
  • Loading branch information
mrsndmn authored Jan 15, 2020
2 parents b126972 + e3edc6a commit a743194
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [push, pull_request]
name: Test
env:
GO111MODULE: on
jobs:
test:
strategy:
Expand All @@ -14,5 +16,11 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test -v -race
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test -v -race

0 comments on commit a743194

Please sign in to comment.