@@ -17,30 +17,30 @@ jobs:
17
17
with :
18
18
fetch-depth : 3
19
19
- uses : technote-space/get-diff-action@v1
20
- id : git-diff
21
20
with :
22
21
PREFIX_FILTER : |
23
22
src/
24
23
__tests__/
25
24
SUFFIX_FILTER : .ts
25
+ FILES : .eslintrc
26
26
- name : Get Yarn Cache Directory
27
27
id : yarn-cache
28
28
run : echo "::set-output name=dir::$(yarn cache dir)"
29
- if : steps.git-diff.outputs.diff
29
+ if : env.GIT_DIFF
30
30
- name : Cache node dependencies
31
31
uses : actions/cache@v1
32
32
with :
33
33
path : ${{ steps.yarn-cache.outputs.dir }}
34
34
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35
35
restore-keys : |
36
36
${{ runner.os }}-yarn-
37
- if : steps.git-diff.outputs.diff
37
+ if : env.GIT_DIFF
38
38
- name : Install Package dependencies
39
39
run : yarn install
40
- if : steps.git-diff.outputs.diff
40
+ if : env.GIT_DIFF
41
41
- name : Check code style
42
- run : yarn eslint ${{ steps.git-diff.outputs.diff }}
43
- if : steps.git-diff.outputs.diff
42
+ run : yarn eslint ${{ env.GIT_DIFF }}
43
+ if : env.GIT_DIFF
44
44
- uses : 8398a7/action-slack@v1
45
45
with :
46
46
type : failure
@@ -61,41 +61,43 @@ jobs:
61
61
with :
62
62
fetch-depth : 3
63
63
- uses : technote-space/get-diff-action@v1
64
- id : git-diff
65
64
with :
66
65
PREFIX_FILTER : |
67
66
src/
68
67
__tests__/
69
68
SUFFIX_FILTER : .ts
69
+ FILES : |
70
+ yarn.lock
71
+ jest.config.js
70
72
- name : Setup node
71
73
uses : actions/setup-node@v1
72
74
with :
73
75
node-version : ${{ matrix.node }}
74
- if : steps.git-diff.outputs.diff || github.event_name == 'push'
76
+ if : env.GIT_DIFF || github.event_name == 'push'
75
77
- name : Get Yarn Cache Directory
76
78
id : yarn-cache
77
79
run : echo "::set-output name=dir::$(yarn cache dir)"
78
- if : steps.git-diff.outputs.diff || github.event_name == 'push'
80
+ if : env.GIT_DIFF || github.event_name == 'push'
79
81
- name : Cache node dependencies
80
82
uses : actions/cache@v1
81
83
with :
82
84
path : ${{ steps.yarn-cache.outputs.dir }}
83
85
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
84
86
restore-keys : |
85
87
${{ runner.os }}-yarn-
86
- if : steps.git-diff.outputs.diff || github.event_name == 'push'
88
+ if : env.GIT_DIFF || github.event_name == 'push'
87
89
- name : Install Package dependencies
88
90
run : yarn install
89
- if : steps.git-diff.outputs.diff || github.event_name == 'push'
91
+ if : env.GIT_DIFF || github.event_name == 'push'
90
92
- name : Run tests
91
93
run : yarn cover
92
- if : steps.git-diff.outputs.diff || github.event_name == 'push'
94
+ if : env.GIT_DIFF || github.event_name == 'push'
93
95
- name : Codecov
94
96
run : curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
95
97
env :
96
98
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
97
99
COVERAGE_FILE : ./coverage/lcov.info
98
- if : matrix.node == '12' && (steps.git-diff.outputs.diff || github.event_name == 'push')
100
+ if : matrix.node == '12' && (env.GIT_DIFF || github.event_name == 'push')
99
101
- uses : 8398a7/action-slack@v1
100
102
with :
101
103
type : failure
0 commit comments