Skip to content

Commit bacaa77

Browse files
samherrmannzaninime
authored andcommitted
Add GitHub CI Workflow
1 parent cb1018b commit bacaa77

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository
9+
uses: actions/checkout@v3
10+
11+
- name: Set up Go
12+
uses: actions/setup-go@v4
13+
with:
14+
go-version: 1.20.5
15+
16+
- name: Install staticcheck
17+
run: go install honnef.co/go/tools/cmd/staticcheck@2023.1.3
18+
19+
- name: Lint
20+
run: staticcheck -checks=all ./...
21+
22+
- name: Test
23+
run: go test -v ./...

0 commit comments

Comments
 (0)