File tree Expand file tree Collapse file tree 2 files changed +41
-19
lines changed Expand file tree Collapse file tree 2 files changed +41
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : ' CI'
2
+ on :
3
+ pull_request :
4
+ branches : [master]
5
+
6
+ jobs :
7
+ test_and_lint :
8
+ name : ' Test'
9
+ runs-on : ubuntu-latest
10
+ timeout-minutes : 5
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - uses : volta-cli/action@v1
15
+
16
+ - name : Get package manager's global cache path
17
+ id : global-cache-dir-path
18
+ run : echo "::set-output name=dir::$(yarn cache dir)"
19
+
20
+ - name : Cache package manager's global cache and node_modules
21
+ id : cache-dependencies
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : |
25
+ ${{ steps.global-cache-dir-path.outputs.dir }}
26
+ node_modules
27
+ key : ${{ runner.os }}-${{ matrix.node-version }}-${{
28
+ hashFiles('**/yarn.lock'
29
+ ) }}
30
+ restore-keys : |
31
+ ${{ runner.os }}-${{ matrix.node-version }}-
32
+
33
+ - name : Install
34
+ run : yarn install
35
+
36
+ - name : Run tests and linting
37
+ run : yarn test
38
+
39
+
40
+
41
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments