File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ actions : read
11+ contents : read
12+ id-token : write
13+ pages : write
14+
15+ concurrency :
16+ group : ' ci'
17+ cancel-in-progress : false
18+
19+ jobs :
20+ ci :
21+ strategy :
22+ matrix :
23+ branch :
24+ - 01-create-project
25+ - 02-create-http-service
26+ - 03-create-view
27+ - 04-create-form
28+ - 05-data-grid
29+ - 06-action-hub
30+ - github-pages
31+ name : ' ${{ matrix.branch }} branch'
32+ runs-on : ubuntu-latest
33+ environment :
34+ name : ${{ matrix.branch == 'github-pages' && matrix.branch || null }}
35+ url : ${{ matrix.branch == 'github-pages' && steps.deployment.outputs.page_url || null }}
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v4
39+ with :
40+ ref : ${{ matrix.branch }}
41+ lfs : true
42+ - name : Setup Node.js environment
43+ uses : actions/setup-node@v4
44+ with :
45+ node-version : 22
46+ - name : Install
47+ run : npm ci
48+ - name : Lint
49+ run : npm run lint
50+ - name : Build
51+ run : npm run build -- --base-href=/${GITHUB_REPOSITORY#*/}/
52+ - name : Test
53+ run : npm run test:ci
54+ - name : Setup Pages
55+ if : matrix.branch == 'github-pages'
56+ uses : actions/configure-pages@v5
57+ - name : Upload GitHub Pages artifact
58+ if : matrix.branch == 'github-pages'
59+ uses : actions/upload-pages-artifact@v3
60+ with :
61+ path : dist/bark-back/browser
62+ - name : Deploy to GitHub Pages
63+ if : matrix.branch == 'github-pages'
64+ id : deployment
65+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments