diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d41dfa4777..16d832d6bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,8 +3,8 @@ name: test on: [push, pull_request] jobs: - build: - runs-on: ${{ matrix.os }} + build-linux: + runs-on: ubuntu-latest services: redis: @@ -17,8 +17,8 @@ jobs: fail-fast: false matrix: node-version: ['14', '16'] - os: [macos-latest, ubuntu-latest, windows-latest] + name: Node ${{ matrix.node_version }} on ${{ runner.os }} steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -35,3 +35,27 @@ jobs: uses: codecov/codecov-action@v2.1.0 with: token: ${{ secrets.CODECOV_TOKEN }} + + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node-version: ['14', '16'] + os: [macos-latest, windows-latest] + + name: Node ${{ matrix.node_version }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + - run: yarn + - run: npm run jest + - run: npm run docs:build + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2.1.0 + with: + token: ${{ secrets.CODECOV_TOKEN }}