-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: tune smoke test invocation (#1017)
- Loading branch information
1 parent
b6bf390
commit 231ad56
Showing
7 changed files
with
75 additions
and
70 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,56 @@ | ||
name: Smoke Test | ||
description: End-to-end smoke tests | ||
|
||
inputs: | ||
env: | ||
description: 'Env name' | ||
required: true | ||
projectToken: | ||
description: 'Chromatic project token' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "client/.nvmrc" | ||
cache: "npm" | ||
cache-dependency-path: "client/package-lock.json" | ||
- name: Install dependencies | ||
shell: bash | ||
working-directory: ./client | ||
run: | | ||
npm ci | ||
npx playwright install --with-deps | ||
# Run e2e tests | ||
- name: Run e2e tests | ||
shell: bash | ||
working-directory: ./client | ||
run: | | ||
npm run e2e-${{ inputs.env }} | ||
- name: Publish to Chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
projectToken: ${{ inputs.projectToken }} | ||
workingDir: ./client | ||
# This is `npm run build-archive-storybook` | ||
buildScriptName: "build-archive-storybook" | ||
|
||
- name: Upload FE test results as an artifact | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: playwright-report | ||
path: ~/**/playwright-report/* | ||
retention-days: 14 | ||
|
||
- name: Upload blob report to GitHub Actions Artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: all-blob-reports | ||
path: ~/**/blob-report/* | ||
retention-days: 1 |
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
This file was deleted.
Oops, something went wrong.
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