-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(code): introduce component and visual testing to stacks (#1194)
Co-authored-by: Dan Cormier <dcormier@stackoverflow.com> Co-authored-by: Ben Kelly <b-kelly@users.noreply.github.com>
- Loading branch information
1 parent
cd0ec76
commit a6c43aa
Showing
32 changed files
with
5,797 additions
and
2,591 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 @@ | ||
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.