Skip to content

Commit b688300

Browse files
committed
Add github actions file
1 parent dc9ac43 commit b688300

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Go environment
18+
uses: actions/setup-go@v5
19+
20+
- name: Install dependencies
21+
run: go mod tidy
22+
23+
- name: Verify formatting
24+
run: go fmt ./...
25+
26+
- name: Run tests
27+
run: go test -v ./...

0 commit comments

Comments
 (0)