File tree Expand file tree Collapse file tree 2 files changed +28
-44
lines changed Expand file tree Collapse file tree 2 files changed +28
-44
lines changed Original file line number Diff line number Diff line change 88
88
if : failure()
89
89
90
90
91
- lint-sh :
92
- name : Lint shell files
93
- runs-on : ubuntu-latest
94
- timeout-minutes : 5
95
- steps :
96
- - name : Checkout repo
97
- uses : actions/checkout@v3
98
-
99
- - name : Get changed files
100
- id : changed-files
101
- uses :
tj-actions/[email protected]
102
- with :
103
- files : |
104
- **/*.sh
105
- **/*.bats
106
-
107
- - name : Install Node.js v16
108
- if : steps.changed-files.outputs.any_changed == 'true'
109
- uses : actions/setup-node@v3
110
- with :
111
- node-version : " 16"
112
-
113
- - name : Fetch dependencies from cache
114
- if : steps.changed-files.outputs.any_changed == 'true'
115
- id : cache-node-modules
116
- uses : actions/cache@v3
117
- with :
118
- path : " **/node_modules"
119
- key : yarn-build-${{ hashFiles('**yarn.lock') }}
120
- restore-keys : |
121
- yarn-build-
122
-
123
- - name : Install dependencies
124
- if : steps.changed-files.outputs.any_changed == 'true' && steps.cache-node-modules.outputs.cache-hit != 'true'
125
- run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
126
-
127
- - name : Lint shell files
128
- if : steps.changed-files.outputs.any_changed == 'true'
129
- run : yarn lint:sh
130
-
131
- - name : Fail workflow
132
- if : failure()
133
-
134
-
135
91
lint-ts :
136
92
name : Lint TypeScript files
137
93
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 51
51
52
52
- name : Run script unit tests
53
53
run : ./ci/dev/test-scripts.sh
54
+ lint :
55
+ name : Lint shell files
56
+ runs-on : ubuntu-latest
57
+ timeout-minutes : 5
58
+ steps :
59
+ - name : Checkout repo
60
+ uses : actions/checkout@v3
61
+
62
+ - name : Install Node.js v16
63
+ uses : actions/setup-node@v3
64
+ with :
65
+ node-version : " 16"
66
+
67
+ - name : Fetch dependencies from cache
68
+ id : cache-node-modules
69
+ uses : actions/cache@v3
70
+ with :
71
+ path : " **/node_modules"
72
+ key : yarn-build-${{ hashFiles('**yarn.lock') }}
73
+ restore-keys : |
74
+ yarn-build-
75
+
76
+ - name : Install dependencies
77
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
78
+ run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
79
+
80
+ - name : Lint shell files
81
+ run : yarn lint:sh
You can’t perform that action at this time.
0 commit comments