File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - next
9+ - alpha
10+ - beta
11+
12+ jobs :
13+ build :
14+ name : Build + Test (+ Release)
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Get Yarn cache path
19+ id : yarn-cache
20+ run : echo "::set-output name=dir::$(yarn cache dir)"
21+
22+ - name : Checkout
23+ uses : actions/checkout@master
24+
25+ - name : Setup node
26+ uses : actions/setup-node@master
27+ with :
28+ node-version : 12.x
29+
30+ - name : Load Yarn cache
31+ uses : actions/cache@v2
32+ with :
33+ path : ${{ steps.yarn-cache.outputs.dir }}
34+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35+ restore-keys : |
36+ ${{ runner.os }}-yarn-
37+
38+ - name : Install dependencies
39+ run : yarn install --frozen-lockfile
40+
41+ - name : Run lint + tests
42+ run : yarn validate
43+
44+ - name : Upload Coverage / Release
45+ run : |
46+ yarn build
47+ yarn ci-after-success
48+ env :
49+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
50+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ SKIP_CODECOV : true
You can’t perform that action at this time.
0 commit comments