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 : Code Quality Checks
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - " **"
7+ push :
8+ branches :
9+ - main
10+
11+ jobs :
12+ test :
13+ name : CI Test
14+ timeout-minutes : 15
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : styfle/cancel-workflow-action@0.9.1
18+ with :
19+ all_but_latest : true
20+ - uses : actions/checkout@v2
21+ with :
22+ fetch-depth : 1
23+ - uses : actions/setup-node@v2
24+ with :
25+ node-version : 14
26+ - name : Configure JDK 1.11
27+ uses : actions/setup-java@v2
28+ with :
29+ distribution : " adopt"
30+ java-version : " 11"
31+ - name : Get yarn cache directory path
32+ id : yarn-cache-dir-path
33+ run : echo "::set-output name=dir::$(yarn cache dir)"
34+ - uses : actions/cache@v2
35+ name : Yarn Cache
36+ id : yarn-cache
37+ with :
38+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
39+ key : ${{ runner.os }}-yarn-v1-${{ hashFiles('**/package.json') }}
40+ restore-keys : ${{ runner.os }}-yarn-v1
41+ - name : Yarn Install
42+ uses : nick-invision/retry@v2
43+ with :
44+ timeout_minutes : 3
45+ retry_wait_seconds : 30
46+ max_attempts : 3
47+ command : yarn --no-audit --prefer-offline
48+ - name : Lint
49+ run : ./test.sh
You can’t perform that action at this time.
0 commit comments