17
17
18
18
steps :
19
19
- name : Checkout repo
20
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v3
21
21
with :
22
22
fetch-depth : 0
23
+
23
24
24
25
-
25
26
name : install dependencies
32
33
run : |
33
34
set -x
34
35
mkdir -p SCANCODE
35
-
36
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
36
37
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
37
38
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
38
39
echo $?
@@ -60,13 +61,14 @@ jobs:
60
61
61
62
steps :
62
63
- name : Checkout repo
63
- uses : actions/checkout@v2
64
+ uses : actions/checkout@v3
64
65
with :
65
66
fetch-depth : 0
66
67
67
68
-
68
69
name : include check
69
70
run : |
71
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
70
72
# checks mbed.h is not included in MbedOS files except in tests
71
73
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
72
74
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
@@ -81,13 +83,14 @@ jobs:
81
83
steps :
82
84
83
85
- name : Checkout repo
84
- uses : actions/checkout@v2
86
+ uses : actions/checkout@v3
85
87
with :
86
88
fetch-depth : 0
87
89
88
90
-
89
91
name : UTF-8 Check
90
92
run : |
93
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
91
94
# Make sure we're not introducing any text which is not UTF-8 encoded
92
95
git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
93
96
96
99
name : astyle checks
97
100
run : |
98
101
set -x
102
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
99
103
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
100
104
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
101
105
| ( grep -v -f .codecheckignore || true ) \
@@ -111,7 +115,7 @@ jobs:
111
115
steps :
112
116
113
117
- name : Checkout repo
114
- uses : actions/checkout@v2
118
+ uses : actions/checkout@v3
115
119
with :
116
120
fetch-depth : 0
117
121
@@ -155,7 +159,7 @@ jobs:
155
159
steps :
156
160
-
157
161
name : Checkout repo
158
- uses : actions/checkout@v2
162
+ uses : actions/checkout@v3
159
163
160
164
161
165
- uses : actions/setup-python@v2
@@ -184,14 +188,15 @@ jobs:
184
188
steps :
185
189
-
186
190
name : Checkout repo
187
- uses : actions/checkout@v2
191
+ uses : actions/checkout@v3
188
192
with :
189
193
fetch-depth : 0
190
194
191
195
-
192
196
name : validate pins
193
197
run : |
194
198
set -x
199
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
195
200
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
196
201
| ( grep '.*[\\|\/]PinNames.h$' || true ) \
197
202
| while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vvvfp "${file}"; done
@@ -210,7 +215,7 @@ jobs:
210
215
steps :
211
216
-
212
217
name : Checkout repo
213
- uses : actions/checkout@v2
218
+ uses : actions/checkout@v3
214
219
215
220
-
216
221
name : cmake build
@@ -237,14 +242,15 @@ jobs:
237
242
steps :
238
243
-
239
244
name : Checkout repo
240
- uses : actions/checkout@v2
245
+ uses : actions/checkout@v3
241
246
with :
242
247
fetch-depth : 0
243
248
244
249
-
245
250
name : frozen tool check
246
251
run : |
247
252
set -x
253
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
248
254
git diff --name-only origin/${GITHUB_BASE_REF} \
249
255
| egrep \
250
256
-e "^tools/build_api*" \
0 commit comments