-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (34 loc) · 1.04 KB
/
ci.yml
File metadata and controls
46 lines (34 loc) · 1.04 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Install Playwright browsers
working-directory: e2e
run: npx playwright install --with-deps chromium
- name: E2E tests (Chrome)
working-directory: e2e
run: xvfb-run --auto-servernum npx playwright test --project=chrome --ignore-snapshots --grep-invert "firefox build"
- name: Build Firefox extension
run: pnpm --filter @wolfcola/devtools-extension build:firefox
- name: E2E tests (Firefox build verification)
working-directory: e2e
run: npx playwright test tests/firefox-build.test.ts --project=chrome