Open History to see the last commit
1name: pr
2on: [pull_request]
3jobs:
4 test:
5 name: 'Node ${{ matrix.node }}, React ${{ matrix.react }}'
6 runs-on: ubuntu-latest
7 strategy:
8 matrix:
9 node: [14, 16]
10 react: [17, 18]
11 steps:
12 - uses: actions/checkout@v2
13 - uses: actions/setup-node@v2
14 with:
15 node-version: ${{ matrix.node }}
16 - name: Install dependencies
17 uses: bahmutov/npm-install@v1
18 - run: npm run test:ci
19 env:
20 REACTJS_VERSION: ${{ matrix.react }}
21 - run: npm run test:size
22 if: matrix.node == '16' && matrix.react == '18'
23 env:
24 BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
25 - name: Upload coverage to Codecov
26 uses: codecov/codecov-action@v2