Fix workflow

This commit is contained in:
arditdomi 2023-04-06 11:11:07 +01:00
parent 61d665cf3d
commit f2e6da751b
No known key found for this signature in database
GPG Key ID: 9766E2FF48E3790B
2 changed files with 11 additions and 5 deletions

View File

@ -38,6 +38,10 @@ inputs:
apa-proxy: # apa-proxy: #
description: "proxy host" description: "proxy host"
required: true required: true
deps:
description: "Library dependencies"
required: false
default: ""
runs: runs:
using: "composite" using: "composite"
@ -121,6 +125,7 @@ runs:
PROVIDER: "${{ inputs.e2e-test-provider }}" PROVIDER: "${{ inputs.e2e-test-provider }}"
AUTH_TYPE: "${{ inputs.e2e-test-auth }}" AUTH_TYPE: "${{ inputs.e2e-test-auth }}"
E2E_TEST_ID: "${{ inputs.e2e-test-id }}" E2E_TEST_ID: "${{ inputs.e2e-test-id }}"
DEPS: "${{ inputs.deps }}"
shell: bash shell: bash
run: | run: |
set -u; set -u;
@ -134,6 +139,7 @@ runs:
PROVIDER: "${{ inputs.e2e-test-provider }}" PROVIDER: "${{ inputs.e2e-test-provider }}"
AUTH_TYPE: "${{ inputs.e2e-test-auth }}" AUTH_TYPE: "${{ inputs.e2e-test-auth }}"
E2E_TEST_ID: "${{ inputs.e2e-test-id }}" E2E_TEST_ID: "${{ inputs.e2e-test-id }}"
DEPS: "${{ inputs.deps }}"
uses: nick-fields/retry@v2.8.2 uses: nick-fields/retry@v2.8.2
with: with:
@ -149,9 +155,9 @@ runs:
export DISPLAY=:99 export DISPLAY=:99
chromedriver --url-base=/wd/hub & chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
bash ./scripts/github/e2e/e2e.sh "$E2E_TEST_ID" "browser" || exit 1 bash ./scripts/github/e2e/e2e.sh "$E2E_TEST_ID" "$DEPS" "browser" || exit 1
else else
bash ./scripts/github/e2e/e2e.sh "$E2E_TEST_ID" || exit 1 bash ./scripts/github/e2e/e2e.sh "$E2E_TEST_ID" "$DEPS" || exit 1
fi fi
- name: upload artifacts on gh - name: upload artifacts on gh

View File

@ -7,12 +7,12 @@ cd $DIR/../../../
BASE_DIRECTORY=$(echo "$FOLDER" | cut -d "/" -f1) BASE_DIRECTORY=$(echo "$FOLDER" | cut -d "/" -f1)
verifyLib=$1; verifyLib=$1;
deps=$3; deps=$2;
REGEX="(repository|workflow)_dispatch" REGEX="(repository|workflow)_dispatch"
# set test-e2e params # set test-e2e params
if [ -n "$2" ]; then if [ -n "$3" ]; then
e2eParams="--$2" e2eParams="--$3"
else else
e2eParams="" e2eParams=""
fi fi