File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build & Size Limit
2+ on : [push, pull_request]
3+ jobs :
4+ build :
5+ name : Node ${{ matrix.node_version }} on ${{ matrix.os }}
6+ runs-on : ${{ matrix.os }}
7+ strategy :
8+ matrix :
9+ node_version : [10, 12, 14]
10+ os : [ubuntu-latest, windows-latest, macos-latest]
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Use node ${{ matrix.node_version }}
14+ uses : actions/setup-node@v1
15+ with :
16+ node-version : ${{ matrix.node_version }}
17+ - name : Restore lerna cache
18+ uses : actions/cache@v2
19+ with :
20+ path : |
21+ node_modules
22+ */*/node_modules
23+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+ - name : Install yarn dependencies
25+ run : yarn install
26+ - run : yarn bootstrap
27+ - name : Build package
28+ run : yarn build
29+ - name : Check built package sizes
30+ run : yarn size
Original file line number Diff line number Diff line change 1+ name : ESLint
2+ on : [push, pull_request]
3+ jobs :
4+ eslint :
5+ name : Node ${{ matrix.node_version }} on ${{ matrix.os }}
6+ runs-on : ${{ matrix.os }}
7+ strategy :
8+ matrix :
9+ node_version : [14]
10+ os : [ubuntu-latest]
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Use node ${{ matrix.node_version }}
14+ uses : actions/setup-node@v1
15+ with :
16+ node-version : ${{ matrix.node_version }}
17+ - name : Restore lerna cache
18+ uses : actions/cache@v2
19+ with :
20+ path : |
21+ node_modules
22+ */*/node_modules
23+ key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+ - name : Install yarn dependencies
25+ run : yarn install
26+ - run : yarn bootstrap
27+ - name : Run ESLint
28+ run : yarn lint
Original file line number Diff line number Diff line change 1- name : CI
1+ name : Unit Tests
22on : [ push, pull_request ]
33jobs :
44 jest :
77 steps :
88 - uses : actions/checkout@v1
99 - run : yarn
10+ - run : yarn bootstrap
1011 - uses : mattallty/jest-github-action@v1
1112 continue-on-error : true
1213 with :
You can’t perform that action at this time.
0 commit comments