-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (62 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
65 lines (62 loc) · 1.61 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
name: ci
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
actions: read
contents: read
id-token: write
pages: write
concurrency:
group: 'ci'
cancel-in-progress: false
jobs:
ci:
strategy:
matrix:
branch:
- 01-create-project
- 02-create-http-service
- 03-create-view
- 04-create-form
- 05-data-grid
- 06-action-hub
- github-pages
name: '${{ matrix.branch }} branch'
runs-on: ubuntu-latest
environment:
name: ${{ matrix.branch == 'github-pages' && matrix.branch || null }}
url: ${{ matrix.branch == 'github-pages' && steps.deployment.outputs.page_url || null }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}
lfs: true
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 22
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build -- --base-href=/${GITHUB_REPOSITORY#*/}/
- name: Test
run: npm run test:ci
- name: Setup Pages
if: matrix.branch == 'github-pages'
uses: actions/configure-pages@v6
- name: Upload GitHub Pages artifact
if: matrix.branch == 'github-pages'
uses: actions/upload-pages-artifact@v5
with:
path: dist/bark-back/browser
- name: Deploy to GitHub Pages
if: matrix.branch == 'github-pages'
id: deployment
uses: actions/deploy-pages@v5