ci: add disable selenium toggle to build workflow
This commit is contained in:
parent
dd3b9bd2f9
commit
e530e0af6a
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -139,6 +139,7 @@ jobs:
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
with:
|
with:
|
||||||
ignoreLowerCoverage: ${{ github.event.inputs.ignoreLowerCoverage == 'true' }}
|
ignoreLowerCoverage: ${{ github.event.inputs.ignoreLowerCoverage == 'true' }}
|
||||||
|
skipSelenium: true
|
||||||
targetBaseVersion: ${{ needs.prepare.outputs.base_image_version }}
|
targetBaseVersion: ${{ needs.prepare.outputs.base_image_version }}
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
@ -8,6 +8,11 @@ on:
|
||||||
default: false
|
default: false
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
skipSelenium:
|
||||||
|
description: 'Skip Selenium Tests'
|
||||||
|
default: false
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
targetBaseVersion:
|
targetBaseVersion:
|
||||||
description: 'Target Base Image Version'
|
description: 'Target Base Image Version'
|
||||||
default: latest
|
default: latest
|
||||||
|
@ -47,6 +52,10 @@ jobs:
|
||||||
echo "Model changes without migrations found."
|
echo "Model changes without migrations found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [[ "x${{ inputs.skipSelenium }}" == "xtrue" ]]; then
|
||||||
|
echo "Disable selenium tests..."
|
||||||
|
sudo rm /usr/bin/geckodriver
|
||||||
|
fi
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
if [[ "x${{ inputs.ignoreLowerCoverage }}" == "xtrue" ]]; then
|
if [[ "x${{ inputs.ignoreLowerCoverage }}" == "xtrue" ]]; then
|
||||||
echo "Lower coverage failures will be ignored."
|
echo "Lower coverage failures will be ignored."
|
||||||
|
|
Loading…
Reference in a new issue