-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
50 lines (38 loc) · 1.1 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
name: Verify
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
statuses: write
concurrency:
group: verify-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Test and build
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint, format, type-check, and test
run: yarn lint && yarn format:check && yarn typecheck && yarn test:coverage
- name: Build the production application
run: yarn build
- name: Verify build output
run: test -f .next/BUILD_ID
- name: Install Playwright browser
run: yarn playwright install --with-deps chromium
- name: Run browser and accessibility tests
run: yarn test:e2e
- name: Run Lighthouse CI
env:
LHCI_GITHUB_TOKEN: ${{ github.token }}
run: yarn lighthouse