File tree Expand file tree Collapse file tree 2 files changed +42
-123
lines changed Expand file tree Collapse file tree 2 files changed +42
-123
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Pull request workflow
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ pr :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v1
11+ - uses : actions/setup-node@v1
12+ with :
13+ node-version : ' 12'
14+ - name : Get yarn cache directory path
15+ id : yarn-cache-dir-path
16+ run : echo "::set-output name=dir::$(yarn cache dir)"
17+ - uses : actions/cache@v1
18+ with :
19+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
20+ key : ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
21+ restore-keys : |
22+ ${{ runner.os }}-node-modules-
23+ ${{ runner.os }}-
24+
25+ - name : Install dependencies
26+ if : steps.yarn-cache.outputs.cache-hit != 'true'
27+ run : yarn
28+
29+ - name : Run tsc
30+ run : yarn tsc
31+
32+ - name : Run unit tests
33+ run : yarn test
34+
35+ - name : Check linter
36+ run : yarn lint
37+
38+ - name : Check markdown linter
39+ run : yarn workspace docs lint-md
40+
41+ - name : Build vuepress
42+ run : yarn build
You can’t perform that action at this time.
0 commit comments