-
-
Notifications
You must be signed in to change notification settings - Fork 8
65 lines (65 loc) · 1.74 KB
/
test.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
56
57
58
59
60
61
62
63
64
65
name: Test
on: [push, pull_request]
jobs:
node:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
name: Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm install --ignore-scripts
- name: Test
run: npm test
- name: Coverage
run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info
browsers:
name: Browsers
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: npm install --ignore-scripts
- name: Install Playwright dependencies
run: npx --no-install playwright install-deps
- name: Install Playwright
run: npx --no-install playwright install
- name: Test
run: npm run test-browsers
electron:
name: Electron
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install
run: npm install --ignore-scripts
- name: Install Electron
run: npm run postinstall
working-directory: node_modules/electron
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test-electron