-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 1.63 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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