Merge pull request #762 from nsacyber/v3_issue_747-spdm #381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build HIRS, run system tests, and create artifacts consisting of ACA and Provisioner logs. | |
# Updated: 04/18/2024 | |
# | |
name: HIRS System Tests | |
on: | |
push: | |
branches: | |
- '*v3*' | |
- 'main' | |
workflow_dispatch: | |
env: | |
TEST_STATUS: 0 | |
jobs: | |
DockerTests: | |
runs-on: ubuntu-latest | |
outputs: | |
test-result: ${{ steps.set_outputs.outputs.test-result }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: ACA TPM2 Tests | |
continue-on-error: true | |
shell: bash | |
run: | | |
# If on a forked repo, ensure that it has a new secret for the PAT | |
# and replace secrets.GITHUB_TOKEN with the secret in the fork | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
bash .ci/system-tests/run_system_tests.sh ${GITHUB_REF#refs/heads/} | |
- name: Archive System Test Log files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: System_Test_Log_Files | |
path: logs/ | |
if-no-files-found: ignore | |
- name: Check System Test results | |
if: success() || failure() | |
run: | | |
if [ ${TEST_STATUS} == "0" ]; then | |
exit 0; | |
else | |
exit 1; | |
fi |