-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Markus Laurila <[email protected]> Co-authored-by: Riku Rouvila <[email protected]>
- Loading branch information
Showing
85 changed files
with
6,033 additions
and
358 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 |
---|---|---|
|
@@ -269,6 +269,52 @@ jobs: | |
- name: Run linting | ||
run: cd packages/client && yarn lint | ||
|
||
run-visual-tests: | ||
name: Run visual tests | ||
needs: prepare-client-tests | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Download filesystem artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: client | ||
path: . | ||
|
||
- name: Use Node.js from .nvmrc | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
|
||
- name: Cache Node.js dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
**/node_modules | ||
~/.cache/yarn/v6 | ||
key: node-${{ hashFiles('**/yarn.lock', format('{0}/{1}','packages/client','package.json')) }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: CI="" yarn install --frozen-lockfile | ||
|
||
# Without this, the fetch command will fail with | ||
# fatal: could not read Username for 'https://github.com': No such device or address | ||
- name: Remove extraheader config | ||
run: git config --unset http.https://github.com/.extraheader | ||
|
||
- name: Fetch full Git history | ||
run: git fetch --prune --unshallow | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run Chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
workingDir: packages/client | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
|
||
test-client: | ||
name: Test client | ||
needs: prepare-client-tests | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# dependencies | ||
/node_modules | ||
/node_modules | ||
!.storybook |
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 |
---|---|---|
|
@@ -31,3 +31,6 @@ src/i18n/locales/en.csv | |
graphql.schema.json | ||
.lh | ||
.idea | ||
|
||
*storybook.log | ||
storybook-static |
Oops, something went wrong.