Skip to content

深化parseRoute的逻辑 #94

深化parseRoute的逻辑

深化parseRoute的逻辑 #94

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'doc/**'
- '*.md'
pull_request:
paths-ignore:
- 'doc/**'
- '*.md'
jobs:
CI:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Installing
run: yarn install --frozen-lockfile
- name: Lerna Bootstrap
run: npx lerna bootstrap
- name: Running Lint
run: yarn lint
- name: Running Test
env:
WAIT_TIME: 1000
DISPLAY: ':99.0'
GITHUB_ACTION: true
OS: ${{ runner.os }}
run: |
npx lerna run build --scope=@sagaroute/react --scope=@sagaroute/cmd
npx lerna run test
- name: Upload react coverage reports
uses: codecov/codecov-action@v3
if: ${{ matrix.os == 'macos-latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/react/coverage/lcov.info
flags: react
name: react
- name: Upload cmd coverage reports
uses: codecov/codecov-action@v3
if: ${{ matrix.os == 'macos-latest' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/cmd/coverage/lcov.info
flags: cmd
name: cmd