Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/update-design-system-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
echo "has_changes=false" >> "$GITHUB_OUTPUT"
fi

- name: Run design-system compatibility tests
if: steps.check-changes.outputs.has_changes == 'true'
run: pnpm vitest run toolkit-docs-generator/tests/scripts/sync-toolkit-sidebar.test.ts toolkit-docs-generator/tests/sources/oauth-provider-resolver.test.ts

- name: Create pull request
if: steps.check-changes.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v7
Expand All @@ -54,6 +58,9 @@ jobs:
body: |
This PR updates `@arcadeai/design-system` to the latest published version.

It runs a design-system compatibility test gate before opening this PR.
If that gate fails, the workflow stops and no PR is created.

- Trigger: `${{ github.event_name }}`
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
add-paths: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"homepage": "https://arcade.dev/",
"dependencies": {
"@arcadeai/design-system": "^3.26.1",
"@arcadeai/design-system": "^3.28.0",
"@mdx-js/mdx": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@next/third-parties": "16.0.1",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions toolkit-docs-generator/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import { createRequire } from "node:module";
import { defineConfig } from "vitest/config";

const require = createRequire(import.meta.url);
const designSystemEntry = require.resolve("@arcadeai/design-system");

export default defineConfig({
resolve: {
alias: {
// Use the Node-resolved entry to avoid broken "development" export paths
// in some published design-system versions during Vitest transform.
"@arcadeai/design-system": designSystemEntry,
},
},
test: {
// Enable globals like describe, it, expect without imports
globals: true,
Expand Down
16 changes: 16 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { createRequire } from "node:module";
import { defineConfig } from "vitest/config";

const require = createRequire(import.meta.url);
const designSystemEntry = require.resolve("@arcadeai/design-system");

export default defineConfig({
resolve: {
alias: {
// Force Vitest to use the Node-resolved entrypoint instead of the
// package "development" condition, which some published versions point
// to non-shipped source files.
"@arcadeai/design-system": designSystemEntry,
},
},
});