-
-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (44 loc) · 1.24 KB
/
build.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
43
44
45
46
47
name: Build
on:
push:
branches-ignore:
- master
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm type-checks
- run: pnpm lint
- run: pnpm test
- run: pnpm package
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist/
test-e2e:
name: E2E Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'pnpm'
- name: Install xsel
run: sudo apt-get install -y --no-install-recommends xsel
- run: pnpm install --frozen-lockfile
- run: pnpm exec playwright install firefox
- run: pnpm build
- run: pnpm exec webext-agent install --addon-ids [email protected]
- run: pnpm exec webext-agent create-addon --base-addon dist/firefox /tmp/vimmatic-mixedin
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- pnpm run test:e2e --headed