ci: add disable selenium toggle to build workflow

This commit is contained in:
Nicolas Giard 2024-10-29 15:24:56 -04:00 committed by GitHub
parent dd3b9bd2f9
commit e530e0af6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -139,6 +139,7 @@ jobs:
needs: [prepare]
with:
ignoreLowerCoverage: ${{ github.event.inputs.ignoreLowerCoverage == 'true' }}
skipSelenium: true
targetBaseVersion: ${{ needs.prepare.outputs.base_image_version }}
# -----------------------------------------------------------------

View file

@ -8,6 +8,11 @@ on:
default: false
required: true
type: boolean
skipSelenium:
description: 'Skip Selenium Tests'
default: false
required: true
type: boolean
targetBaseVersion:
description: 'Target Base Image Version'
default: latest
@ -47,6 +52,10 @@ jobs:
echo "Model changes without migrations found."
exit 1
fi
if [[ "x${{ inputs.skipSelenium }}" == "xtrue" ]]; then
echo "Disable selenium tests..."
sudo rm /usr/bin/geckodriver
fi
echo "Running tests..."
if [[ "x${{ inputs.ignoreLowerCoverage }}" == "xtrue" ]]; then
echo "Lower coverage failures will be ignored."