File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ name : Build on ${{ matrix.os }}
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ node-version : [12.x]
15+ os : [ubuntu-latest, macOS-latest, windows-latest]
16+
17+ steps :
18+ - name : Use Node.js ${{ matrix.node-version }}
19+ uses : actions/setup-node@v1
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+ - name : Checkout
23+ uses : actions/checkout@v2
24+
25+ - name : Get yarn cache directory path
26+ id : yarn-cache-dir-path
27+ run : echo "::set-output name=dir::$(yarn cache dir)"
28+ - name : Restore yarn cache
29+ id : yarn-cache
30+ uses : actions/cache@v1
31+ with :
32+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
33+ key : ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+ restore-keys : |
35+ ${{ matrix.os }}-yarn-
36+
37+ - name : Yarn
38+ run : yarn
39+
40+ - name : Reason build
41+ run : yarn build
42+
43+ - name : Parcel build
44+ run : yarn parcel build examples/index.html
You can’t perform that action at this time.
0 commit comments