-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into vdelev_selfhosted
- Loading branch information
Showing
1 changed file
with
19 additions
and
3 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 |
---|---|---|
|
@@ -45,6 +45,10 @@ on: | |
type: string | ||
required: false | ||
default: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || !!startsWith(github.ref, 'refs/heads/release-') || !!startsWith(github.ref, 'refs/heads/dependabot')}} | ||
playwright_spec_param: | ||
type: string | ||
description: "Run specific test(s). Example: `landing-page.spec.ts`" | ||
required: false | ||
node_run_webpack: | ||
description: "Flag to always run the webpack production build." | ||
type: boolean | ||
|
@@ -72,6 +76,11 @@ on: | |
# required: false | ||
# type: boolean | ||
# default: false | ||
chromatic_enable: | ||
description: 'Enable Chromatic Tests' | ||
required: false | ||
type: boolean | ||
default: false | ||
secrets: | ||
DATAVISYN_BOT_REPO_TOKEN: | ||
required: false | ||
|
@@ -83,6 +92,8 @@ on: | |
required: false | ||
CYPRESS_ENV: | ||
required: false | ||
CHROMATIC_PROJECT_TOKEN: | ||
required: false | ||
|
||
env: | ||
NPM_REGISTRY: "https://registry.npmjs.org/" | ||
|
@@ -116,6 +127,7 @@ jobs: | |
with: | ||
ref: ${{ inputs.branch }} | ||
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
fetch-depth: ${{ inputs.chromatic_enable && '0' || '1' }} | ||
- name: Checkout github-workflows | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -130,6 +142,11 @@ jobs: | |
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} | ||
run_webpack: ${{ inputs.node_run_webpack }} | ||
#disable_cache: ${{ inputs.disable_cache }} | ||
- name: Run Chromatic | ||
if: ${{ inputs.chromatic_enable }} | ||
uses: chromaui/[email protected] | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
|
||
build-python: | ||
name: Python | ||
|
@@ -363,12 +380,11 @@ jobs: | |
run: yarn playwright install --with-deps chromium | ||
shell: bash | ||
- name: Run playwright e2e tests | ||
run: | | ||
yarn run pw:run | ||
run: yarn run pw:run ${{ inputs.playwright_spec_param }} | ||
shell: bash | ||
- name: Upload playwright report | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
name: "playwright-report-${{ inputs.branch }}" | ||
path: playwright-report/ |