-
Notifications
You must be signed in to change notification settings - Fork 100
ci: gate visual regression tests by path #2248
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
Open
dancormier
wants to merge
14
commits into
main
Choose a base branch
from
dcormier/gate-visual-regression-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+78
−9
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fb553b9
ci: gate visual regression tests by path
dancormier 3e91c83
ci: skip visual regression tests by path
dancormier baa26bd
ci: scope visual regression path checks
dancormier bd76203
test: trigger visual regression path filter
dancormier e316f67
Merge branch 'main' into dcormier/gate-visual-regression-tests
dancormier ccec4b4
chore: trigger ci
dancormier 59f8298
Merge branch 'dcormier/gate-visual-regression-tests' of https://githu…
dancormier a06b80f
ci: preserve visual regression check name
dancormier 29f99d2
test: remove visual regression trigger
dancormier 5ac6276
ci: mark visual regression job skipped
dancormier bd84389
test: trigger visual regression run
dancormier 5aeb4d4
ci: update node actions
dancormier b69ece2
ci: detect visual regression changes early
dancormier ec365b4
test: remove visual regression run trigger
dancormier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,62 @@ | ||
| name: Visual Regression Tests | ||
| run-name: Visual Regression Tests | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| changes: | ||
| name: Detect Changes | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| should_run: ${{ steps.filter.outputs.run }} | ||
| steps: | ||
| - name: ⬇️ Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Detect Stacks Classic changes | ||
| id: filter | ||
| uses: dorny/paths-filter@v4 | ||
| with: | ||
| filters: | | ||
| run: | ||
| - 'packages/stacks-classic/**' | ||
|
|
||
| visual-regression-tests: | ||
| name: Visual Regression Tests | ||
| needs: changes | ||
| if: needs.changes.outputs.should_run == 'true' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: ⬇️ Checkout | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| lfs: true | ||
|
|
||
| - name: ⎔ Setup node | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: 'lts/*' | ||
|
|
||
| - name: 🏗 Install Dependencies | ||
| run: npm ci | ||
|
|
||
| - name: 🔑 Setup SSH for private submodule | ||
| run: | | ||
| mkdir -p ~/.ssh | ||
| echo -e "${SUBMODULE_SSH_KEY//_/\\n}" > ~/.ssh/id_rsa | ||
| chmod og-rwx ~/.ssh/id_rsa | ||
| env: | ||
| SUBMODULE_SSH_KEY: ${{ secrets.SUBMODULE_SSH_KEY }} | ||
|
|
||
| - name: ▶️ Visual Regression Tests | ||
| run: npm run test:visual:ci -w packages/stacks-classic -- --config ./visual-runner/stacks-classic-runner-config/web-test-runner.config.ci.mjs | ||
| env: | ||
| BETTER_AUTH_SECRET: ${{ secrets.AUTH_SECRET || 'ci-build-placeholder-secret' }} | ||
|
|
||
| - name: ⬆️ Upload Visual Regression Test Results | ||
| uses: actions/upload-artifact@v4 | ||
| if: ${{ failure() }} | ||
| with: | ||
| name: visual-regression-test-results | ||
| path: packages/stacks-classic/screenshots | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
github-advanced-security[bot] marked this conversation as resolved.
Fixed
dancormier marked this conversation as resolved.
Dismissed
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.