From 0c8fe12889e8d626095e003091108c3b0fe0c509 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 18 Feb 2022 11:03:39 -0400 Subject: [PATCH] chore: parallel test (#9139) * chore: parallel test * chore: parallel test --- .github/workflows/test.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61fae65ac3..11a33525e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,20 +3,17 @@ name: test on: [push, pull_request] jobs: - build: + jest: runs-on: ubuntu-latest - services: redis: image: redis ports: - 6379/tcp options: --entrypoint redis-server - strategy: matrix: node-version: ['14', '16'] - name: Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v2 @@ -28,8 +25,23 @@ jobs: - run: npm run jest env: REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ - - run: npm run docs:build - name: Upload coverage to Codecov uses: codecov/codecov-action@v2.1.0 with: token: ${{ secrets.CODECOV_TOKEN }} + + docs: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['14', '16'] + name: Node ${{ matrix.node-version }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + - run: yarn + - name: Build docs + run: npm run docs:build