|
7 | 7 | THREADS_WORKER_INIT_TIMEOUT: 15000
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - Test: |
| 10 | + # Building threads library from source |
| 11 | + Build: |
11 | 12 | if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
12 | 13 | runs-on: ${{ matrix.os }}
|
13 | 14 | strategy:
|
14 | 15 | fail-fast: false
|
15 | 16 | matrix:
|
16 |
| - node_version: [ '10', '12', '14' ] |
| 17 | + node_version: ['15'] |
17 | 18 | os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
|
18 | 19 | steps:
|
19 | 20 | - uses: actions/checkout@v2
|
20 | 21 | - name: Setup node
|
21 |
| - uses: actions/setup-node@v2-beta |
| 22 | + uses: actions/setup-node@v2 |
22 | 23 | with:
|
23 | 24 | node-version: ${{ matrix.node }}
|
24 | 25 |
|
25 | 26 | - name: install dependencies and build
|
26 | 27 | run: npm install
|
27 | 28 |
|
| 29 | + - name: Dev test |
| 30 | + run: npm run test:dev |
| 31 | + |
| 32 | + - name: Upload artifacts |
| 33 | + uses: actions/upload-artifact@v2 |
| 34 | + with: |
| 35 | + path: | |
| 36 | + ./bundle |
| 37 | + ./dist |
| 38 | + ./dist-esm |
| 39 | +
|
| 40 | + # Testing the built files |
| 41 | + Test: |
| 42 | + needs: Build |
| 43 | + if: "!contains(github.event.head_commit.message, '[skip ci]')" |
| 44 | + runs-on: ${{ matrix.os }} |
| 45 | + strategy: |
| 46 | + fail-fast: false |
| 47 | + matrix: |
| 48 | + node_version: [ '10', '12', '14' ] |
| 49 | + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + - name: Setup node |
| 53 | + uses: actions/setup-node@v2 |
| 54 | + with: |
| 55 | + node-version: ${{ matrix.node }} |
| 56 | + |
| 57 | + - name: install dependencies |
| 58 | + run: npm install --ignore-scripts |
| 59 | + |
28 | 60 | - name: run the tests
|
29 |
| - run: npm test |
| 61 | + run: npm run test:ava && npm run test:puppeteer:basic && npm run test:puppeteer:webpack |
30 | 62 |
|
31 | 63 | Skip:
|
32 | 64 | if: contains(github.event.head_commit.message, '[skip ci]')
|
|
0 commit comments