HIRS/.github/workflows/system_test.yml

45 lines
1.3 KiB
YAML
Raw Permalink Normal View History

# This workflow will build HIRS, run system tests, and create artifacts consisting of ACA and Provisioner logs.
# Updated: 04/18/2024
#
2021-11-16 21:51:42 +00:00
name: HIRS System Tests
on:
2021-11-16 21:51:42 +00:00
push:
2023-06-23 14:52:49 +00:00
branches:
- '*v3*'
- 'main'
workflow_dispatch:
2021-11-16 21:51:42 +00:00
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@v4
- 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@v4
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