File tree 2 files changed +43
-106
lines changed
2 files changed +43
-106
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow performs the checks like license check,
2
+ # doxygen, unit tests etc.
3
+ name : Snippets Checks
4
+
5
+ on :
6
+ pull_request :
7
+ workflow_dispatch :
8
+ push :
9
+ branches :
10
+ - development
11
+
12
+ jobs :
13
+ Snippets-check :
14
+ runs-on : ubuntu-latest
15
+ container :
16
+ image : ghcr.io/armmbed/mbed-os-env:master-latest
17
+
18
+ steps :
19
+ - name : Checkout repo
20
+ uses : actions/checkout@v2
21
+
22
+ - name : clone mbed-os
23
+ run : git clone https://github.com/armmbed/mbed-os.git
24
+
25
+ - name : add mbed_app.json
26
+ run : |
27
+ echo '{ "target_overrides": { "K64F": { "target.features_add": ["BLE"] } } }' > mbed_app.json
28
+
29
+ - name : validate code snippets
30
+ run : ./check_tools/find_bad_code_snippets.sh
31
+
32
+ - name : find remaining TODOs
33
+ run : |
34
+ TODO_COUNT=0
35
+ for f in $(find -name mbed-os -prune -o -name '*.md' -print)
36
+ do
37
+ for l in $(sed -n '/```.*TODO/I=' $f)
38
+ do
39
+ echo "TODO in $f line $l"
40
+ TODO_COUNT=$(expr $TODO_COUNT + 1)
41
+ done
42
+ done
43
+ echo "Total number of TODOs: $TODO_COUNT"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments