Skip to content

Commit 6e28093

Browse files
committed
Setup CI
1 parent b287391 commit 6e28093

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Lint
13+
uses: magefile/mage-action@v1
14+
with:
15+
version: latest
16+
args: lint
17+
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: |
27+
${{ runner.os }}-go-
28+
- uses: actions/setup-go@v2
29+
- name: test
30+
uses: magefile/mage-action@v1
31+
with:
32+
version: latest
33+
args: test

0 commit comments

Comments
 (0)