From 9b4cb3af63c49250f84fd4ec669401233b62c397 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Sun, 12 Nov 2023 09:06:22 +0100 Subject: [PATCH] WIP --- .github/workflows/test-ui-gh_runner.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-ui-gh_runner.yml b/.github/workflows/test-ui-gh_runner.yml index c3ff6da7a2d..4acd8a3e4e2 100644 --- a/.github/workflows/test-ui-gh_runner.yml +++ b/.github/workflows/test-ui-gh_runner.yml @@ -36,7 +36,7 @@ jobs: name: ${{ inputs.asset-name }}-ui_test-files path: ${{ inputs.asset-name }}-ui_test-files - - name: Check-ECLWatch-UI-Test-Directory + - name: Check ECLWatch UI Test Directory id: check run: | if [[ ! -d ${{ inputs.asset-name }}-ui_test-files ]] @@ -58,13 +58,19 @@ jobs: shell: "bash" run: | sudo apt-get update - sudo apt-get install -y git wget net-tools - sudo apt-get install -y tzdata unzip xvfb libxi6 - sudo apt-get install -y default-jdk - sudo apt-get install -y ${{ inputs.dependencies }} - sudo apt-get install -y gdb + sudo apt-get install -y \ + git \ + wget \ + net-tools \ + tzdata \ + unzip \ + xvfb \ + libxi6 \ + default-jdk \ + gdb \ + ${{ inputs.dependencies }} - - name: UI-Test-Prerequisites + - name: Install UI Dependencies if: steps.check.outputs.runtests run: | wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb @@ -107,7 +113,7 @@ jobs: run: | export CLASSPATH=".:$(realpath selenium-server-standalone-3.141.59.jar):$(realpath testng-6.8.7.jar)" pushd ${{ inputs.asset-name }}-ui_test-files - ./run.sh tests http://localhost:8010 > eclWatchUiTest.log 2>&1 + sudo ./run.sh tests http://localhost:8010 > eclWatchUiTest.log 2>&1 retCode=$? echo "UI test done" [[ $retCode -ne 0 ]] && exit 1