@@ -230,7 +230,7 @@ jobs:
230230 # ####################################
231231 # Run Linter test cases #
232232 # ####################################
233- - name : Run Test Cases
233+ - name : Run Test Cases (linux/amd64)
234234 shell : bash
235235 run : |
236236 GITHUB_REPOSITORY=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.event.pull_request.head.repo.full_name }}" || echo "${{ github.repository }}")
@@ -240,9 +240,21 @@ jobs:
240240 TEST_KEYWORDS_TO_USE="${TEST_KEYWORDS_TO_USE_UPPER,,}"
241241
242242 docker buildx build --platform linux/amd64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }} .
243- docker buildx build --platform linux/arm64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}-arm64 .
244243
245244 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 }}
245+ timeout-minutes : 30
246+
247+ - name : Run Test Cases (linux/arm64)
248+ shell : bash
249+ run : |
250+ GITHUB_REPOSITORY=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.event.pull_request.head.repo.full_name }}" || echo "${{ github.repository }}")
251+ GITHUB_BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
252+
253+ TEST_KEYWORDS_TO_USE_UPPER="${{ matrix.linter }}"
254+ TEST_KEYWORDS_TO_USE="${TEST_KEYWORDS_TO_USE_UPPER,,}"
255+
256+ docker buildx build --platform linux/arm64 -f linters/${{ matrix.linter }}/Dockerfile --load --tag oxsecurity/megalinter-only-${{ matrix.linter }}:${{ needs.prepare.outputs.tag }}-arm64 .
257+
246258 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
247259 timeout-minutes : 30
248260
0 commit comments