-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (49 loc) · 1.52 KB
/
Copy pathci.yml
File metadata and controls
61 lines (49 loc) · 1.52 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
name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
# Cancel any in-progress run for the same branch/PR when a newer commit lands.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '24'
cache: 'npm'
# Runs `nuxt prepare` via the postinstall hook, which generates the .nuxt
# types + eslint typegen that both `lint` and `typecheck` rely on.
- name: Install dependencies
run: npm install
# The quality steps below use `if: ${{ !cancelled() }}` so every check runs
# and reports its own result even when an earlier one fails.
- name: Lint
if: ${{ !cancelled() }}
run: npm run lint
- name: Type check
if: ${{ !cancelled() }}
run: npm run typecheck
- name: Unit tests
if: ${{ !cancelled() }}
run: npm test
- name: Install Playwright browser
if: ${{ !cancelled() }}
run: npx playwright install --with-deps chromium
- name: E2E tests
if: ${{ !cancelled() }}
run: npm run test:e2e
- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v5
with:
name: playwright-report
path: playwright-report/
retention-days: 7