@@ -220,7 +220,7 @@ jobs:
220
220
# ####################################
221
221
# Run Linter test cases #
222
222
# ####################################
223
- - name : Run Test Cases
223
+ - name : Run Test Cases (linux/amd64)
224
224
shell : bash
225
225
run : |
226
226
GITHUB_REPOSITORY=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.event.pull_request.head.repo.full_name }}" || echo "${{ github.repository }}")
@@ -230,9 +230,21 @@ jobs:
230
230
TEST_KEYWORDS_TO_USE="${TEST_KEYWORDS_TO_USE_UPPER,,}"
231
231
232
232
docker buildx build --platform linux/amd64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }} .
233
- docker buildx build --platform linux/arm64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}-arm64 .
234
233
235
234
docker run -e TEST_CASE_RUN=true -e OUTPUT_FORMAT=text -e OUTPUT_FOLDER=${{ github.sha }} -e OUTPUT_DETAIL=detailed -e GITHUB_SHA=${{ github.sha }} -e GITHUB_REPOSITORY=${GITHUB_REPOSITORY} -e GITHUB_BRANCH=${GITHUB_BRANCH} -e PAT="${{ secrets.PAT }}" -e TEST_KEYWORDS="${TEST_KEYWORDS_TO_USE}" -e MEGALINTER_VOLUME_ROOT="${GITHUB_WORKSPACE}" -v "/var/run/docker.sock:/var/run/docker.sock:rw" -v ${GITHUB_WORKSPACE}:/tmp/lint oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}
235
+ timeout-minutes : 30
236
+
237
+ - name : Run Test Cases (linux/arm64)
238
+ shell : bash
239
+ run : |
240
+ GITHUB_REPOSITORY=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.event.pull_request.head.repo.full_name }}" || echo "${{ github.repository }}")
241
+ GITHUB_BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
242
+
243
+ TEST_KEYWORDS_TO_USE_UPPER="${{ matrix.linter }}"
244
+ TEST_KEYWORDS_TO_USE="${TEST_KEYWORDS_TO_USE_UPPER,,}"
245
+
246
+ docker buildx build --platform linux/arm64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}-arm64 .
247
+
236
248
docker run -e TEST_CASE_RUN=true -e OUTPUT_FORMAT=text -e OUTPUT_FOLDER=${{ github.sha }} -e OUTPUT_DETAIL=detailed -e GITHUB_SHA=${{ github.sha }} -e GITHUB_REPOSITORY=${GITHUB_REPOSITORY} -e GITHUB_BRANCH=${GITHUB_BRANCH} -e PAT="${{ secrets.PAT }}" -e TEST_KEYWORDS="${TEST_KEYWORDS_TO_USE}" -e MEGALINTER_VOLUME_ROOT="${GITHUB_WORKSPACE}" -v "/var/run/docker.sock:/var/run/docker.sock:rw" -v ${GITHUB_WORKSPACE}:/tmp/lint oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}-arm64
237
249
timeout-minutes : 30
238
250
0 commit comments