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