42
42
name : Set Chunks
43
43
run : |
44
44
echo "test-chunks<<EOF" >> $GITHUB_OUTPUT
45
- echo "$( jq -nc '${{ env.FQBNS }} | [_nwise( ${{ env.BOARD-COUNT }}/15 | ceil)]')" >> $GITHUB_OUTPUT
45
+ echo "$( jq -nc '${{ env.FQBNS }} | [_nwise( ${{ env.BOARD-COUNT }}/15 | ceil)] | to_entries | map({id: (.key + 1), chunk: .value}) ')" >> $GITHUB_OUTPUT
46
46
echo "EOF" >> $GITHUB_OUTPUT
47
47
48
48
test-boards :
57
57
strategy :
58
58
fail-fast : false
59
59
matrix :
60
- chunk : ${{ fromJSON(needs.setup-chunks.outputs.test-chunks) }}
60
+ include : ${{ fromJSON(needs.setup-chunks.outputs.test-chunks) }}
61
61
62
62
steps :
63
63
- name : Checkout repository
90
90
exit 1;
91
91
fi
92
92
93
- # Running CodeQL here generates thousands of false positives
93
+ - name : Initialize CodeQL
94
+ uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
95
+ with :
96
+ languages : cpp
97
+ build-mode : manual
98
+ config-file : ./.github/codeql/codeql-config.yml
94
99
95
100
- name : Compile sketch
96
101
uses : P-R-O-C-H-Y/compile-sketches@a62f069b92dc8f5053da4ac439ea6d1950cf6379 # main
@@ -108,3 +113,25 @@ jobs:
108
113
sketch-paths : " - ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
109
114
verbose : true
110
115
116
+ - name : Run CodeQL Analysis
117
+ uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
118
+ with :
119
+ category : " Boards Test: ${{ env.TEST_MODE }} chunk ${{ matrix.id }}"
120
+ output : sarif-results
121
+ upload : failure-only
122
+
123
+ - name : Filter CodeQL Results
124
+ uses : advanced-security/filter-sarif@v1
125
+ with :
126
+ patterns : |
127
+ +**/*
128
+ -tools/**
129
+ input : sarif-results/cpp.sarif
130
+ output : sarif-results/cpp.sarif
131
+
132
+ - name : Upload filtered SARIF
133
+ uses : github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
134
+ with :
135
+ sarif_file : sarif-results/cpp.sarif
136
+ category : " Boards Test: ${{ env.TEST_MODE }} chunk ${{ matrix.id }}"
137
+
0 commit comments