-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff7b417
commit 2f147bb
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: e2e_be_core | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
be_url: | ||
description: The backend URL for testing | ||
type: string | ||
required: true | ||
default: "" | ||
project: | ||
description: Lagoon project name | ||
type: string | ||
required: true | ||
default: "" | ||
browser: | ||
description: Browser, default to headless Chrome. | ||
type: string | ||
default: "chrome" | ||
tag: | ||
description: SDP testing Docker image tag | ||
type: string | ||
required: false | ||
default: migration | ||
|
||
jobs: | ||
e2e_be_core: | ||
name: e2e_be_core | ||
runs-on: biggy | ||
container: | ||
image: docker://sdptestautomation/e2e:${{ inputs.tag }} | ||
credentials: | ||
username: ${{ secrets.E2E_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.E2E_DOCKERHUB_PASSWORD }} | ||
steps: | ||
- name: Check if it's PR env backend | ||
run: | | ||
PR_ENV_REGEX=".*.pr-" | ||
if [[ $(expr match "${{ inputs.be_url }}" $PR_ENV_REGEX) != 0 ]]; then | ||
echo 'export SKIP_PR=" and not @skip-pr"' >> $GITHUB_ENV | ||
echo "PR env detected - adding @skip-pr tag to skip tests" | ||
else | ||
echo 'export SKIP_PR=""' >> $GITHUB_ENV | ||
echo "PR env not detected" | ||
fi | ||
- name: Run E2E BE | ||
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_be.yml@dev-tim | ||
with: | ||
tags: "(@core) and @regression${SKIP_PR}" | ||
be_url: ${{ inputs.be_url }} | ||
project: ${{ inputs.project }} | ||
browser: ${{ inputs.browser }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: e2e_be_custom | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
be_url: | ||
description: The backend URL for testing | ||
type: string | ||
required: true | ||
default: "" | ||
project: | ||
description: Lagoon project name | ||
type: string | ||
required: true | ||
default: "" | ||
browser: | ||
description: Browser, default to headless Chrome. | ||
type: string | ||
default: "chrome" | ||
tag: | ||
description: SDP testing Docker image tag | ||
type: string | ||
required: false | ||
default: migration | ||
|
||
jobs: | ||
e2e_be_custom: | ||
name: e2e_be_custom | ||
runs-on: biggy | ||
container: | ||
image: docker://sdptestautomation/e2e:${{ inputs.tag }} | ||
credentials: | ||
username: ${{ secrets.E2E_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.E2E_DOCKERHUB_PASSWORD }} | ||
steps: | ||
- name: Check if it's PR env backend | ||
run: | | ||
PR_ENV_REGEX=".*.pr-" | ||
if [[ $(expr match "${{ inputs.be_url }}" $PR_ENV_REGEX) != 0 ]]; then | ||
echo 'export SKIP_PR=" and not @skip-pr"' >> $GITHUB_ENV | ||
echo "PR env detected - adding @skip-pr tag to skip tests" | ||
else | ||
echo 'export SKIP_PR=""' >> $GITHUB_ENV | ||
echo "PR env not detected" | ||
fi | ||
- name: Run E2E BE | ||
uses: dpc-sdp/github-actions/.github/workflows/run_e2e_be.yml@dev-tim | ||
with: | ||
tags: "(@${{ inputs.project }}) and @regression${SKIP_PR}" | ||
be_url: ${{ inputs.be_url }} | ||
project: ${{ inputs.project }} | ||
browser: ${{ inputs.browser }} |