@@ -12,67 +12,74 @@ jobs:
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
15+ - uses : actions/setup-node@v1
16+ with :
17+ node-version : 16
1518 - run : npm install
19+ - run : npm run build
1620 - run : npm run lint
17- # or
18- # - uses: gozala/[email protected] 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 }}
21+ - run : npm run depcheck
2422 test-node :
2523 needs : check
2624 runs-on : ${{ matrix.os }}
25+ name : Test ${{ matrix.project }} node
2726 strategy :
2827 matrix :
2928 os : [windows-latest, ubuntu-latest, macos-latest]
30- node : [14, 16]
29+ node : [16]
30+ project :
31+ - ipfs-repo
32+ - ipfs-repo-migrations
3133 fail-fast : true
3234 steps :
3335 - uses : actions/checkout@v2
3436 - uses : actions/setup-node@v1
3537 with :
3638 node-version : ${{ matrix.node }}
3739 - 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 :
40+ - run : npm run test -- --scope=${{ matrix.project }} -- -- --cov -t node
41+ test-browser :
5842 needs : check
5943 runs-on : ubuntu-latest
44+ name : test ${{ matrix.project }} ${{ matrix.browser }} ${{ matrix.type }}
45+ strategy :
46+ matrix :
47+ project :
48+ - ipfs-repo
49+ # - ipfs-repo-migrations
50+ browser :
51+ - chromium
52+ - firefox
53+ type :
54+ - browser
55+ - webworker
56+ fail-fast : true
6057 steps :
6158 - uses : actions/checkout@v2
62- - uses : microsoft/playwright-github-action@v1
59+ - uses : actions/setup-node@v1
60+ with :
61+ node-version : 16
6362 - run : npm install
64- - run : npx aegir test -t browser -t webworker --bail -- --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:
73- # needs: check
74- # runs-on: ubuntu-latest
75- # steps:
76- # - uses: actions/checkout@v2
77- # - run: npm install
78- # - run: npx xvfb-maybe aegir test -t electron-renderer --bail
63+ - run : npm run test -- --scope=${{ matrix.project }} -- -- -t ${{ matrix.type }} -- --browser ${{ matrix.browser }}
64+ # test-electron:
65+ # needs: check
66+ # runs-on: ubuntu-latest
67+ # name: test ${{ matrix.project }} ${{ matrix.type }}
68+ # strategy:
69+ # matrix:
70+ # project:
71+ # - ipfs-repo
72+ # - ipfs-repo-migrations
73+ # type:
74+ # - electron-main
75+ # - electron-renderer
76+ # fail-fast: true
77+ # steps:
78+ # - uses: actions/checkout@v2
79+ # - uses: actions/setup-node@v1
80+ # with:
81+ # node-version: 16
82+ # - run: npm install
83+ # - uses: GabrielBB/xvfb-action@v1
84+ # with:
85+ # run: npm run test -- --scope=${{ matrix.project }} -- -- -t ${{ matrix.type }} --bail
0 commit comments