-
Notifications
You must be signed in to change notification settings - Fork 91
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
Introduce Testing to Stacks #1194
Merged
Merged
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
f07da4d
test(setup): add a poc for component testing
giamir d1e430f
match orginial indentation for diff purposes
dancormier 414fb28
test(tooltip): add wtr visual regression example
giamir de78eb0
Merge branch 'develop' into gbuoncristiani/introduce-testing-setup
giamir b3c1ba1
refactor(tooltip): remove old tooltip version
giamir 3df1318
test(backstop): mark backstop tests as legacy
giamir 7f075c3
ci(workflow): add basic pipeline to build and run tests
giamir 664bef5
fix(styles): fix stylelint rules violations
giamir 53937b3
fix(ts): fix eslint rules violations
giamir b5d1aea
fix(format): fix all prettier violations
giamir 7559641
test(visual): remove baseline images from regular git tracking
giamir 4793b1a
test(visual): track baseline images with git lfs
giamir 688c071
fix(lint-ts): adjust rule exception after formatting
giamir d03dea1
ci(test): trigger another netlify deployment
giamir 0d0b6dd
Merge branch 'develop' into gbuoncristiani/testing
giamir 55d0c85
ci(test): update github workflow
giamir 440ecc1
test(tooltip): fix width for visual regression test
giamir b7ab801
test(tooltip): adjust width for visual regression test
giamir 1a850b9
ci(test): upload visual regression diffs on failure
giamir 4e1fecf
ci(test): fix workflow syntax
giamir 5f7a2f1
test(visual): settle on a default font family for tests
giamir 56d88db
ci(test): fix small typo
giamir 3613a6d
test(visual): set a failure threshold
giamir bf8999a
ci(test): adjust playwright install command
giamir 9cc7f65
ci(test): add firefox launch options
giamir a4e6d71
ci(test): disable firefox temporarily
giamir b472f08
test(tooltip): add prefix s- for consistency
giamir f795b07
ci(test): fix and add back testing against firefox in CI
giamir 690a8fe
Update README.md
giamir 6055c67
Merge branch 'develop' into gbuoncristiani/testing
giamir c46b5b9
Merge branch 'develop' into gbuoncristiani/testing
giamir 170ba48
fix(dev-server-rollup): apply temp patch to run tests in windows
giamir b4e1b0b
test(visual): relax failure threshold to 5 percent
giamir 166236f
test(cleanup): remove backstop legacy tests
giamir 91a56eb
test(visual): update default fonts
giamir b1ebfac
Merge branch 'develop' into gbuoncristiani/testing
giamir 0caa564
Update .gitignore
giamir 483c0cc
Merge branch 'develop' into gbuoncristiani/testing
giamir 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 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 @@ | ||
screenshots/** filter=lfs diff=lfs merge=lfs -text | ||
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,46 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
branches: [develop] | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
|
||
- name: 🏗 Install and Build | ||
run: | | ||
npm ci | ||
npx playwright install --with-deps | ||
npm run build | ||
|
||
- name: ▶️ Lint and Test | ||
run: | | ||
npm run lint | ||
npm run test -- --config web-test-runner.config.ci.mjs | ||
|
||
- name: ⬆️ Upload Visual Regression Test Results | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: visual-regression-test-results | ||
path: screenshots | ||
|
||
|
||
# cancel the jobs if another workflow is kicked off for the same branch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Nice, this should keep us from accidentally committing images to the git history