We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7e8beb commit 190ca7bCopy full SHA for 190ca7b
.github/workflows/ci.yml
@@ -0,0 +1,29 @@
1
+name: Go
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build-and-test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
16
+ - name: Set up Go
17
+ uses: actions/setup-go@v5
18
+ with:
19
+ go-version: '1.22' # Adjust to match your go.mod
20
21
+ - name: Install dependencies
22
+ run: go mod tidy
23
24
+ - name: Run tests
25
+ run: go test -v ./...
26
27
+ - name: Check formatting
28
+ run: |
29
+ test -z "$(gofmt -l .)" || (gofmt -d . && exit 1)
0 commit comments