-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5646 from gooddata/pb-pr-integrated
feat: integrated tests from pull-request comment
- Loading branch information
Showing
7 changed files
with
183 additions
and
80 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
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
103 changes: 103 additions & 0 deletions
103
.github/workflows/rw-rush-build-e2e-tests-integrated.yml
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,103 @@ | ||
name: rw ~ rush ~ e2e tests integrated | ||
on: | ||
workflow_call: | ||
inputs: | ||
filter: | ||
required: false | ||
description: "List of spec files to filter" | ||
type: string | ||
source-ref: | ||
required: false | ||
description: "source ref of the current code" | ||
type: string | ||
|
||
jobs: | ||
warm-up-cache: | ||
runs-on: | ||
group: infra1-runners-arc | ||
labels: runners-cxa-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.source-ref }} | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: git-action | ||
email: [email protected] | ||
- name: Warmup rush | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
uses: ./.github/actions/rush/warm-up-rush | ||
build: | ||
needs: [warm-up-cache] | ||
runs-on: | ||
group: infra1-runners-arc | ||
labels: runners-rxa-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.source-ref }} | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: git-action | ||
email: [email protected] | ||
- name: Debug | ||
run: git log -1 | ||
- name: Setup rush | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
uses: ./.github/actions/rush/set-up-rush | ||
- name: Rush build | ||
run: node common/scripts/install-run-rush.js build --to @gooddata/sdk-ui-tests-e2e | ||
|
||
e2e: | ||
needs: [warm-up-cache,build] | ||
runs-on: | ||
group: infra1-runners-arc | ||
labels: runners-rxa-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.source-ref }} | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: git-action | ||
email: [email protected] | ||
- name: Setup rush | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
uses: ./.github/actions/rush/set-up-rush | ||
- name: Rush build | ||
run: | | ||
node common/scripts/install-run-rush.js build --to @gooddata/sdk-ui-tests-e2e | ||
- name: Rush generate dynamic files related to build | ||
run: node common/scripts/install-run-rush.js build-generate-version | ||
- name: Run e2e tests | ||
run: | | ||
export RUN_ON_GH=true | ||
export TEST_BACKEND=https://staging-automation.dev-latest.stg11.panther.intgdc.com | ||
export TIGER_DATASOURCES_NAME=pg_staging-goodsales | ||
export EXECUTOR_NUMBER=$GH_RUN_ID | ||
if [ -n "$USER_FILTER" ]; then | ||
export FILTER=$USER_FILTER | ||
fi | ||
echo "Running with FILTER=$FILTER" | ||
./common/scripts/ci/run_cypress_integrated_tests.sh | ||
env: | ||
GH_RUN_ID: ${{ github.run_id }} | ||
TIGER_API_TOKEN: ${{ secrets.AWS_STAGING_TEST_API_TOKEN }} | ||
USER_FILTER: ${{ inputs.filter }} | ||
- name: Archive the cypress test artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: cypress-test-artifacts | ||
path: | | ||
libs/sdk-ui-tests-e2e/recordings/mappings/**/*.spec.ts.json | ||
libs/sdk-ui-tests-e2e/cypress/videos/**/*.mp4 |
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
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
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
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