Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into vdelev_selfhosted
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed May 3, 2024
2 parents 1d89986 + 77f57c2 commit 35a5d89
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -83,6 +92,8 @@ on:
required: false
CYPRESS_ENV:
required: false
CHROMATIC_PROJECT_TOKEN:
required: false

env:
NPM_REGISTRY: "https://registry.npmjs.org/"
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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/

0 comments on commit 35a5d89

Please sign in to comment.