Skip to content

Commit 496b8d9

Browse files
committed
.github: Add GitHub Actions
1 parent df7fd88 commit 496b8d9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
test:
5+
runs-on: ubuntu-24.04
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-go@v5
9+
with:
10+
go-version: stable
11+
- run: |
12+
if [[ "$(go fmt)" ]]; then
13+
echo "Go files were not formatted properly"
14+
exit 1
15+
fi
16+
go build
17+
go test
18+
go vet

0 commit comments

Comments
 (0)