Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACS-9201 create smoke test suite #4361

Merged
merged 15 commits into from
Feb 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[ACS-9201] add smoke test workflow
akashrathod28 committed Jan 31, 2025
commit 54da3c9bd21f0b49e797cfb4ec3010c01715487c
11 changes: 8 additions & 3 deletions .github/actions/run-e2e-playwright/action.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ inputs:
test-smoke:
description: 'Test smoke'
required: false
default: ''
default: false
artifact-name:
description: Name of the artifact cache
required: true
@@ -33,5 +33,10 @@ runs:
done
printf "\nApplication is ready.\n"

echo "Running playwright tests with options ${{ inputs.options }}"
npx nx run ${{ inputs.options }}-e2e:e2e --grep ${{ inputs.test-smoke }}
if [ "${{ inputs.test-smoke }}" == "true" ]; then
echo "Running smoke tests with options ${{ inputs.options }}"
npx nx run ${{ inputs.options }}-e2e:e2e --grep @smoke
else
echo "Running all tests with options ${{ inputs.options }}"
npx nx run ${{ inputs.options }}-e2e:e2e
fi
9 changes: 5 additions & 4 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -6,9 +6,8 @@ name: "Smoke Test"
on:
push:
branches:
- develop
- master
- acs-9201-create-smoke-test-suite

workflow_dispatch:
inputs:
dry-run-release:
@@ -56,6 +55,7 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'npm'

- uses: ./.github/actions/before-install
- run: npm ci
- run: npx nx build aca-playwright-shared
@@ -130,10 +130,11 @@ jobs:
shell: bash
run: npx playwright install chromium

- uses: ./.github/actions/run-e2e-playwright
- name: Run playwright tests
uses: ./.github/actions/run-e2e-playwright
with:
options: "${{ matrix.e2e-suites.name }}"
test-smoke: "@smoke"
test-smoke: true
artifact-name: ${{ matrix.e2e-suites.name }}
test-runner: playwright

Loading