-
-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (52 loc) · 1.38 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
48
49
50
51
52
53
54
55
name: Build
on:
push:
branches-ignore:
- master
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
cache: 'yarn'
- uses: ueokande/setup-firefox@latest
with:
firefox-version: 78.3.0esr
- run: yarn install --immutable
- run: yarn tsc
- run: yarn lint
- run: yarn test
- run: yarn package
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/
# TODO playwright-webextext does not support MV3
# test-e2e:
# name: E2E Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18.5.0'
# cache: 'yarn'
# - uses: ueokande/setup-firefox@latest
# with:
# firefox-version: 78.3.0esr
# - name: Install xsel
# run: sudo apt-get install -y --no-install-recommends xsel
# - run: yarn install --immutable
# - run: yarn build
# - run: $(npm bin)/webext-agent install
# - run: $(npm bin)/webext-agent create-addon --base-addon . /tmp/vimmatic-mixedin
# - name: Run test
# run: |
# export DISPLAY=:99
# Xvfb -ac :99 -screen 0 1280x1024x24 >/dev/null 2>&1 &
# yarn test:e2e --headed