-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
676 changed files
with
14,247 additions
and
8,648 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
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,3 @@ | ||
apps/nextjs/tests-e2e/recordings/*.chunks.txt linguist-generated=true | ||
apps/nextjs/tests-e2e/recordings/*.json linguist-generated=true | ||
**/*/__snapshots__/*.snap linguist-generated=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "Chromatic" | ||
|
||
on: push | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-chromatic | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
changed-files: | ||
runs-on: ubuntu-latest | ||
name: changed-files | ||
outputs: | ||
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | ||
any_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
files: | | ||
apps/nextjs/** | ||
chromatic: | ||
name: Run Chromatic | ||
needs: [changed-files] | ||
if: ${{ needs.changed-files.outputs.any_changed == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Inject Doppler env vars | ||
uses: dopplerhq/[email protected] | ||
id: doppler | ||
with: | ||
doppler-token: ${{ secrets.DOPPLER_TOKEN }} | ||
inject-env-vars: true | ||
- name: Run Chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
workingDir: apps/nextjs | ||
exitZeroOnChanges: true | ||
exitOnceUploaded: true | ||
onlyChanged: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,8 @@ jobs: | |
- name: Install deps (with cache) | ||
run: pnpm install | ||
|
||
- name: Enable Turbo Remote Caching | ||
run: pnpm turbo login --token ${{ secrets.TURBO_TOKEN }} | ||
|
||
- name: Generate prisma client | ||
run: pnpm db-generate | ||
run: pnpm db-generate:no-engine | ||
|
||
- name: Inject Doppler env vars | ||
uses: dopplerhq/[email protected] | ||
|
@@ -46,4 +43,4 @@ jobs: | |
inject-env-vars: true | ||
|
||
- name: Run tests | ||
run: pnpm turbo test --cache-dir=".turbo" | ||
run: pnpm turbo test --cache-dir=".turbo" -- --maxWorkers=33% |
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.