-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 855 Bytes
/
Copy pathci.yml
File metadata and controls
50 lines (38 loc) · 855 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Ensure dependencies
run: go mod tidy
- name: Vet
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
- name: Start emulator
run: docker compose up -d
- name: Run tests
run: go test -v ./...
- name: Stop emulator
if: always()
run: docker compose down