-
-
Notifications
You must be signed in to change notification settings - Fork 169
33 lines (30 loc) · 629 Bytes
/
go.yml
File metadata and controls
33 lines (30 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Go
on:
push:
branches: [ main ]
paths:
- '.github/**'
- 'db/**'
pull_request:
paths:
- '.github/**'
- 'db/**'
jobs:
db-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- run: make db-fmt
- name: Ensure formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go files are not formatted"
exit 1
fi
git diff --exit-code
working-directory: db
- run: make db-vet
- run: make db-test