-
Notifications
You must be signed in to change notification settings - Fork 29
98 lines (80 loc) · 2.18 KB
/
Copy pathbuild.yaml
File metadata and controls
98 lines (80 loc) · 2.18 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-windows:
name: Build Windows
runs-on: blacksmith-4vcpu-windows-2025
env:
GOWORK: off
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Test
run: go test ./...
- name: Build
run: go build -o openapi-changes.exe .
build:
name: Build
runs-on: blacksmith-4vcpu-ubuntu-2404
env:
GOWORK: off
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
id: go
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
- name: Build report UI
run: npm ci && npm run build
working-directory: html-report/ui
- name: Verify embedded UI bundles are committed
run: |
status="$(git status --porcelain --untracked-files=all -- html-report/ui/build/static)"
test -z "$status" || { echo "$status"; exit 1; }
- name: Download dependencies
run: go mod download
- name: Test
run: go test ./...
- name: Build
run: make build
- name: Clean modcache
run: go clean -modcache
build-report-ui:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v5
name: Checkout repository
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
- name: Install dependencies
run: npm ci
working-directory: html-report/ui
- name: Build
run: npm run build
working-directory: html-report/ui
- name: Verify embedded UI bundles are committed
run: |
status="$(git status --porcelain --untracked-files=all -- html-report/ui/build/static)"
test -z "$status" || { echo "$status"; exit 1; }