Skip to content

Commit

Permalink
workflows: add test results verification (redhat-best-practices-for-k…
Browse files Browse the repository at this point in the history
…8s#399)

* workflows: add test results verification

Using the "tnf check results" command.
  • Loading branch information
jmontesi authored Feb 16, 2024
1 parent 781d8cf commit dc8916a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pre-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,15 @@ jobs:
working-directory: cnf-certification-test

- name: 'Test: Run Smoke Tests in a TNF container'
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l 'common && !affiliated-certification-container-is-certified-digest'
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l '!affiliated-certification-container-is-certified-digest && !access-control-security-context'
working-directory: cnf-certification-test

- name: Build the TNF tool
run: make build-tnf-tool
working-directory: cnf-certification-test

- name: Check the smoke test results against the expected results template
run: ./tnf check results --log-file="${TNF_OUTPUT_DIR}"/cnf-certsuite.log
working-directory: cnf-certification-test

- name: Upload container test results as an artifact
Expand All @@ -135,4 +143,4 @@ jobs:
${{ env.TNF_OUTPUT_DIR }}/claim.json
${{ env.TNF_OUTPUT_DIR }}/claimjson.js
${{ env.TNF_OUTPUT_DIR }}/results.html
${{ env.TNF_OUTPUT_DIR }}/tnf-execution.log
${{ env.TNF_OUTPUT_DIR }}/cnf-certsuite.log

0 comments on commit dc8916a

Please sign in to comment.