ci: split MISRA linter and MISRA mutation (#2086)

* sep

* this
This commit is contained in:
Maxime Desroches 2024-11-21 11:48:02 -08:00 committed by GitHub
parent 2fbf0c5ff8
commit b770745342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 2 deletions

View File

@ -88,8 +88,8 @@ jobs:
scons -j$(nproc) ${{ matrix.flags }} && \ scons -j$(nproc) ${{ matrix.flags }} && \
tests/safety/test.sh" tests/safety/test.sh"
misra: misra_linter:
name: MISRA C:2012 name: MISRA C:2012 Linter
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@ -101,6 +101,17 @@ jobs:
- name: Run MISRA C:2012 analysis - name: Run MISRA C:2012 analysis
timeout-minutes: 2 timeout-minutes: 2
run: ${{ env.RUN }} "cd tests/misra && ./test_misra.sh" run: ${{ env.RUN }} "cd tests/misra && ./test_misra.sh"
misra_mutation:
name: MISRA C:2012 Mutation
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: eval "$BUILD"
- name: Build FW
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: MISRA mutation tests - name: MISRA mutation tests
timeout-minutes: 5 timeout-minutes: 5
run: ${{ env.RUN }} "cd tests/misra && pytest -n8 test_mutation.py" run: ${{ env.RUN }} "cd tests/misra && pytest -n8 test_mutation.py"