Skip to content

Commit 4a31deb

Browse files
authored
ci: add basic CI workflow (#113)
## Summary - Adds a CI workflow that runs on pushes to main and PRs - Steps: build, golangci-lint, tests
1 parent e616b2a commit 4a31deb

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- uses: actions/setup-go@v6
16+
with:
17+
go-version-file: go.mod
18+
19+
- name: Build
20+
run: go build -v ./...
21+
22+
- name: Lint
23+
uses: golangci/golangci-lint-action@v9
24+
with:
25+
args: --config=.golangci.yml --timeout=5m
26+
27+
- name: Test
28+
run: go test -v ./...

0 commit comments

Comments
 (0)