Skip to content

Commit 31d8ea7

Browse files
authored
mdl: add svg subcommand for headless auto-layout SVG export; tests and CI (#1005)
Squash merge after green CI: adds mdl svg subcommand, tests, CI updates.
1 parent efa7029 commit 31d8ea7

File tree

14 files changed

+629
-21
lines changed

14 files changed

+629
-21
lines changed

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version-file: go.mod
20+
21+
- name: Install Chrome
22+
uses: browser-actions/setup-chrome@v1
23+
24+
- name: Verify Chrome
25+
run: |
26+
google-chrome --version || chromium --version || true
27+
28+
- name: Cache npm
29+
uses: actions/cache@v4
30+
with:
31+
path: |
32+
cmd/mdl/webapp/node_modules
33+
key: ${{ runner.os }}-npm-${{ hashFiles('cmd/mdl/webapp/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-npm-
36+
37+
- name: Build UI (with caching)
38+
run: |
39+
make build-ui
40+
41+
- name: Depend (install goimports and golangci-lint)
42+
run: |
43+
make depend
44+
45+
- name: Go mod cache
46+
uses: actions/cache@v4
47+
with:
48+
path: |
49+
~/go/pkg/mod
50+
~/.cache/go-build
51+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
52+
restore-keys: |
53+
${{ runner.os }}-go-
54+
55+
- name: Lint
56+
run: |
57+
make lint
58+
59+
- name: Test
60+
env:
61+
CHROME_BIN: google-chrome
62+
run: |
63+
make test
64+
65+

0 commit comments

Comments
 (0)