forked from docker/model-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 671 Bytes
/
ci.yml
File metadata and controls
32 lines (25 loc) · 671 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
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: 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