File tree Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Setup test environment'
2
+ description : ' '
3
+ inputs : {}
4
+ outputs : {}
5
+ runs :
6
+ using : " composite"
7
+ steps :
8
+ - name : Use Node.js ${{ matrix.node-version }}
9
+ uses : actions/setup-node@v2
10
+ with :
11
+ node-version : ${{ matrix.node-version }}
12
+ cache : ' yarn'
13
+ - run : yarn install --frozen-lockfile
14
+ shell : " bash"
Original file line number Diff line number Diff line change @@ -12,29 +12,12 @@ jobs:
12
12
os : [ubuntu-latest]
13
13
14
14
steps :
15
- - uses : actions/checkout@v1
16
-
17
- - name : Use Node.js
18
- uses : actions/setup-node@v1
19
- with :
20
- node-version : ${{ matrix.node-version }}
21
-
22
- - uses : actions/cache@v2
23
- with :
24
- path : ~/.npm
25
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26
- restore-keys : |
27
- ${{ runner.os }}-node-
28
-
29
- - name : Install
30
- run : yarn install --frozen-lockfile
31
-
15
+ - uses : actions/checkout@v2
16
+ - uses : ./.github/actions/setup-test-env
32
17
- name : Build JS
33
18
run : yarn build
34
-
35
19
- name : Run Tests
36
20
run : yarn run test
37
-
38
21
- name : Run Lint
39
22
run : yarn run lint
40
23
Original file line number Diff line number Diff line change 14
14
needs : test
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v2.3.4
17
+ - uses : actions/checkout@v2
18
18
- uses : ./.github/actions/setup-test-env
19
19
- name : Build all packages
20
20
shell : nix develop -c bash -eo pipefail -l {0}
You can’t perform that action at this time.
0 commit comments