-
Notifications
You must be signed in to change notification settings - Fork 99
39 lines (31 loc) · 892 Bytes
/
ci.yml
File metadata and controls
39 lines (31 loc) · 892 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
name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Verify vendor/ is not present
run: stat vendor && exit 1 || exit 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.24.2
cache: true
- name: Check go mod tidy
run: |
go mod tidy
go mod tidy -C cmd/cli
go work sync
git diff --exit-code go.mod go.sum cmd/cli/go.mod cmd/cli/go.sum go.work go.work.sum
- name: Run tests with race detection
run: go test -race ./...
- name: validate
run: make validate
- name: model-distribution # TODO: Create a single Makefile for the monorepo
run: make -C ./pkg/distribution/ all