3
3
push :
4
4
branches :
5
5
- master
6
- - ' release/**'
7
6
pull_request :
8
7
branches :
9
8
- master
10
- - ' release/**'
11
9
12
10
jobs :
13
11
check :
14
12
runs-on : ubuntu-latest
15
13
steps :
16
14
- uses : actions/checkout@v2
17
15
- run : npm install
18
- - run : npx aegir lint
19
- - run : npx aegir build
20
- - run : npx aegir dep-check
21
- - uses : ipfs/aegir/actions/bundle-size@master
22
- with :
23
- github_token : ${{ secrets.GITHUB_TOKEN }}
16
+ - run : npm run build
17
+ - run : npm run lint
18
+ - run : npm run dep-check
24
19
test-node :
25
20
needs : check
26
21
runs-on : ${{ matrix.os }}
22
+ name : Test ${{ matrix.project }} node
27
23
strategy :
28
24
matrix :
29
25
os : [windows-latest, ubuntu-latest, macos-latest]
@@ -35,44 +31,43 @@ jobs:
35
31
with :
36
32
node-version : ${{ matrix.node }}
37
33
- run : npm install
38
- - run : npx aegir test -t node --bail --cov
39
- - uses : codecov/codecov-action@v1
40
- test-chrome :
41
- needs : check
42
- runs-on : ubuntu-latest
43
- steps :
44
- - uses : actions/checkout@v2
45
- - uses : microsoft/playwright-github-action@v1
46
- - run : npm install
47
- - run : npx aegir test -t browser -t webworker --bail
48
- - uses : codecov/codecov-action@v1
49
- test-firefox :
50
- needs : check
51
- runs-on : ubuntu-latest
52
- steps :
53
- - uses : actions/checkout@v2
54
- - uses : microsoft/playwright-github-action@v1
55
- - run : npm install
56
- - run : npx aegir test -t browser -t webworker --bail -- --browser firefox
57
- test-webkit :
58
- needs : check
59
- runs-on : ubuntu-latest
60
- steps :
61
- - uses : actions/checkout@v2
62
- - uses : microsoft/playwright-github-action@v1
63
- - run : npm install
64
- - run : npx aegir test -t browser -t webworker --bail --timeout 10000 -- --browser webkit
65
- test-electron-main :
66
- needs : check
67
- runs-on : ubuntu-latest
68
- steps :
69
- - uses : actions/checkout@v2
70
- - run : npm install
71
- - run : npx xvfb-maybe aegir test -t electron-main --bail
72
- test-electron-renderer :
34
+ - run : npm run test --cov -t node -- --exit
35
+ test-browser :
73
36
needs : check
74
37
runs-on : ubuntu-latest
38
+ name : test ${{ matrix.browser }} ${{ matrix.type }}
39
+ strategy :
40
+ matrix :
41
+ browser :
42
+ - chromium
43
+ - firefox
44
+ type :
45
+ - browser
46
+ - webworker
47
+ fail-fast : true
75
48
steps :
76
49
- uses : actions/checkout@v2
50
+ - uses : actions/setup-node@v1
51
+ with :
52
+ node-version : 16
77
53
- run : npm install
78
- - run : npx xvfb-maybe aegir test -t electron-renderer --bail
54
+ - run : npm run test -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
55
+ test-electron :
56
+ needs : check
57
+ runs-on : ubuntu-latest
58
+ name : test ${{ matrix.type }}
59
+ strategy :
60
+ matrix :
61
+ type :
62
+ - electron-main
63
+ - electron-renderer
64
+ fail-fast : true
65
+ steps :
66
+ - uses : actions/checkout@v2
67
+ - uses : actions/setup-node@v1
68
+ with :
69
+ node-version : 16
70
+ - run : npm install
71
+ - uses : GabrielBB/xvfb-action@v1
72
+ with :
73
+ run : npm run test -- -t ${{ matrix.type }} --bail --exit
0 commit comments