-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.51 KB
/
Copy pathci.yml
File metadata and controls
72 lines (60 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
validate:
name: Validate
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
cache: true
- name: go test (validate)
run: go test -v -race ./validate/...
- name: govulncheck
if: matrix.os == 'ubuntu-latest'
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
cache: true
- uses: golangci/golangci-lint-action@v9
with:
version: latest
args: --timeout=5m
install-mode: goinstall
schema-check:
name: Schema check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
cache: true
- name: Install gomnibus
run: go install github.com/syntaxroot-cc/gomnibus/cmd/gomnibus@latest
- name: Validate project definitions
run: gomnibus validate gitlab