-
Notifications
You must be signed in to change notification settings - Fork 54
42 lines (40 loc) · 990 Bytes
/
pipeline.yml
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
name: Pipeline
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run format-check
- run: npm run lint
- run: npm run lint-styles
- run: npm run dev &
- run: npx playwright install --with-deps
- run: npm run test-coverage
env:
CI: true
deploy:
if: github.ref == 'refs/heads/main'
needs: check
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: public
- id: deployment
uses: actions/deploy-pages@v2