File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,26 +22,48 @@ concurrency:
2222 cancel-in-progress : false
2323
2424jobs :
25+ # Validate model following our rules
26+ # @see test/validate-model.spec.ts
27+ validate :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v5
32+
33+ - name : Setup bun
34+ uses : oven-sh/setup-bun@v2
35+
36+ - name : Install dependencies
37+ run : bun install
38+
39+ - name : Validate
40+ run : bun run test
41+
2542 # Build job
2643 build-pages :
2744 runs-on : ubuntu-latest
45+ needs : validate
2846 steps :
2947 - name : Checkout
3048 uses : actions/checkout@v5
3149
50+ - name : Setup bun
51+ uses : oven-sh/setup-bun@v2
52+
3253 - name : Setup Pages
3354 id : pages
3455 uses : actions/configure-pages@v4
3556
36- - name : Build
37- uses : likec4/ actions@v1
57+ - name : Upload artifact
58+ uses : actions/upload-pages-artifact@v3
3859 with :
39- action : build
40- output : dist
41- # required if you don't set a custom domain for the repository
42- # https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#types-of-github-pages-sites
43- base : ${{ steps.pages.outputs.base_path }}/docs/c4_diagrams/likec4_src
44- likec4-version : latest
60+ path : ./dist
61+
62+ - name : Build
63+ run : |
64+ bunx likec4@latest build \
65+ --base "${{ steps.pages.outputs.base_path || '/' }}" \
66+ --output dist
4567
4668 - name : Upload artifact
4769 uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments