|
| 1 | +name: ci |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + pull_request: |
| 7 | + branches: |
| 8 | + - master |
| 9 | + |
| 10 | +jobs: |
| 11 | + check: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + - run: npm install -g npm@latest |
| 16 | + - run: npm install |
| 17 | + - run: npm run lint |
| 18 | + - uses: gozala/typescript-error-reporter-action@v1.0.8 |
| 19 | + - run: npx aegir build |
| 20 | + - run: npx aegir dep-check -- -- -- -p |
| 21 | + - run: npx aegir dep-check -- -- -- -- --unused |
| 22 | + test-node: |
| 23 | + needs: check |
| 24 | + runs-on: ${{ matrix.os }} |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + os: [windows-latest, ubuntu-latest, macos-latest] |
| 28 | + node: [14, 15] |
| 29 | + fail-fast: true |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v2 |
| 32 | + - uses: actions/setup-node@v1 |
| 33 | + with: |
| 34 | + node-version: ${{ matrix.node }} |
| 35 | + - run: npm install -g npm@latest |
| 36 | + - run: npm install |
| 37 | + - run: npx nyc --reporter=lcov aegir test -t node -- --bail |
| 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 | + - run: npm install -g npm@latest |
| 45 | + - run: npm install |
| 46 | + - run: npx aegir test -t browser -t webworker --bail |
| 47 | + test-firefox: |
| 48 | + needs: check |
| 49 | + runs-on: ubuntu-latest |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + - run: npm install -g npm@latest |
| 53 | + - run: npm install |
| 54 | + - run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless |
| 55 | + test-electron-main: |
| 56 | + needs: check |
| 57 | + runs-on: ubuntu-latest |
| 58 | + steps: |
| 59 | + - uses: actions/checkout@v2 |
| 60 | + - run: npm install -g npm@latest |
| 61 | + - run: npm install |
| 62 | + - run: npx xvfb-maybe aegir test -t electron-main --bail |
| 63 | + test-electron-renderer: |
| 64 | + needs: check |
| 65 | + runs-on: ubuntu-latest |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v2 |
| 68 | + - run: npm install -g npm@latest |
| 69 | + - run: npm install |
| 70 | + - run: npx xvfb-maybe aegir test -t electron-renderer --bail |
0 commit comments