-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.08 KB
/
ci.yml
File metadata and controls
47 lines (39 loc) · 1.08 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.25.x']
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 1
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Unit tests
run: go test -v -race $(go list -e ./tools/pkg/... | grep -v /3rdparty/) ./binder/ ./parcel/
- name: Vet
run: go vet $(go list -e ./tools/pkg/... ./tools/... | grep -v /3rdparty/) ./binder/ ./parcel/ ./kernelbinder/ ./servicemanager/ ./errors/
- name: Build commands and tools
run: go build ./tools/cmd/...
- name: Build examples
run: |
for d in examples/*/; do
echo "Building $d..."
go build "./$d"
done
- name: Verify generated code is up to date
run: |
make clean
make generate
make smoke
make readme
git diff --exit-code