File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on : [push]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ node : [10, 12, 14]
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v2-beta
14+ with :
15+ node-version : ${{ matrix.node }}
16+
17+ - name : Get yarn cache directory path
18+ id : yarn-cache-path
19+ run : echo "::set-output name=dir::$(yarn cache dir)"
20+
21+ - uses : actions/cache@master
22+ id : yarn-cache
23+ with :
24+ path : ${{ steps.yarn-cache-path.outputs.dir }}
25+ key : yarn-${{ hashFiles('**/yarn.lock') }}
26+ restore-keys : yarn-
27+
28+ - name : Install dependencies
29+ run : yarn install
30+
31+ - name : Lint and Test with ${{ matrix.node }}
32+ env :
33+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
34+ run : |
35+ yarn lint
36+ yarn test
37+ yarn docs
38+ yarn validate-translations
You can’t perform that action at this time.
0 commit comments