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: Set up JDK 8
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '8'
|
|
|
|
distribution: 'adopt'
|
|
|
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
|
|
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
|
|
|
- name: ACA TPM2 Tests
|
|
|
|
continue-on-error: true
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y curl
|
2022-04-12 22:12:14 +00:00
|
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | 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
|