HIRS/.github/workflows/system_test.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

2021-11-16 21:51:42 +00:00
# Sets up and runs HIRS System tests
name: HIRS System Tests
on:
push:
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:
- uses: actions/checkout@v2
- name: ACA TPM2 Tests
continue-on-error: true
shell: bash
run: |
sudo apt-get install -y curl
export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0*/jre/bin"
2022-04-12 22:12:14 +00:00
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# comment out the line above and uncomment the line below to run in a forked repo.
#echo "${{ secrets.PKG_PWD }}" | docker login ghcr.io -u $ --password-stdin
2022-01-26 17:08:29 +00:00
bash .ci/system-tests/run_system_tests.sh
2021-11-16 21:51:42 +00:00
- name: Archive System Test Log files
uses: actions/upload-artifact@v2
with:
name: System_Test_Log_Files
path: logs/
if-no-files-found: error
- name: Check System Test results
if: success() || failure()
run: |
if [ ${TEST_STATUS} == "0" ]; then
exit 0;
else
2022-01-26 17:08:29 +00:00
exit 1;
2022-04-11 20:43:29 +00:00
fi