Skip to content

Commit

Permalink
Use cache in github workflow test (#126)
Browse files Browse the repository at this point in the history
* Use cache in github workflow test
  • Loading branch information
micnncim authored Nov 1, 2019
1 parent f9e7181 commit d45d0b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main Workflow
name: Test
on: [push]
jobs:

Expand All @@ -13,8 +13,14 @@ jobs:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
- name: Check out code into the Go modules directory
uses: actions/checkout@v1

- name: Cache Go modules
uses: actions/cache@preview
with:
path: ~/go/pkg/mod/cache
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}

- name: Test
run: make test

0 comments on commit d45d0b9

Please sign in to comment.