Skip to content

Commit b7a24db

Browse files
committed
Add CI
1 parent d79af2a commit b7a24db

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test-and-lint:
11+
name: Run tests and lint
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Install golang
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: '^1.15.0'
20+
- run: go test ./...
21+
- run: '! go fmt ./... 2>&1 | read'

0 commit comments

Comments
 (0)