chore: parallel test (#9139)

* chore: parallel test

* chore: parallel test
This commit is contained in:
Tony
2022-02-18 23:03:39 +08:00
committed by GitHub
parent 26752077c6
commit 0c8fe12889
+17 -5
View File
@@ -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