-
Notifications
You must be signed in to change notification settings - Fork 607
test: WORKFLOW TEST: DO NOT MERGE (Delete after ENG-2146) Dashboard code only change #4197
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
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1b03f3d
feat: exclude markdown and txt files from dashboard workflow triggers
mcstepp ea2f11c
feat: add dashboard-specific workflow checks
mcstepp 2e53bc8
fix: add required env vars for dashboard build
mcstepp 1f9a43a
fix: improve markdown exclusion pattern with both root and nested paths
mcstepp 641a4c2
fix: use extglob syntax for dashboard and go filters to avoid picomat…
mcstepp a62e31e
fix: correct operator precedence in build and test_api job conditions
mcstepp 750111b
test: dashboard code change
mcstepp 4d38cf8
fix: remove typecheck step (build catches TS errors), keep lint and b…
mcstepp 7ef2002
Merge branch 'ENG-2146-dashboard-workflow' into test/dashboard-code-c…
mcstepp c4fed46
rename workflow to match naming conventions
mcstepp d735523
Merge branch 'ENG-2146-dashboard-workflow' into test/dashboard-code-c…
mcstepp 4af3b43
fix: remove lint step (handled by autofix.ci with Biome)
mcstepp 9aa744b
Merge branch 'ENG-2146-dashboard-workflow' into test/dashboard-code-c…
mcstepp 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 hidden or 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 hidden or 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,37 @@ | ||
| name: Test Dashboard | ||
| on: | ||
| workflow_call: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| name: Test Dashboard | ||
| runs-on: depot-ubuntu-24.04-4 | ||
| steps: | ||
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 | ||
| - name: Setup Node | ||
| uses: ./.github/actions/setup-node | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Test | ||
| run: pnpm turbo run test --filter=@unkey/dashboard | ||
| env: | ||
| CI: 1 | ||
| - name: Build | ||
| run: pnpm turbo run build --filter=@unkey/dashboard | ||
| env: | ||
| CI: 1 | ||
| DATABASE_HOST: localhost:8080 | ||
| DATABASE_USERNAME: unkey | ||
| DATABASE_PASSWORD: password | ||
| DATABASE_NAME: unkey | ||
| UNKEY_WORKSPACE_ID: "not-empty" | ||
| UNKEY_API_ID: "not-empty" | ||
| UNKEY_WEBHOOK_KEYS_API_ID: "not-empty" | ||
| AGENT_URL: "http://localhost:8080" | ||
| AGENT_TOKEN: "not-empty" | ||
| AUTH_PROVIDER: "workos" | ||
| WORKOS_CLIENT_ID: "client_" | ||
| WORKOS_API_KEY: "sk_test_" | ||
| WORKOS_COOKIE_PASSWORD: "IAMACOOKIEPASSWORD" | ||
| NEXT_PUBLIC_WORKOS_REDIRECT_URI: "http://localhost:3000/auth/sso-callback" | ||
This file contains hidden or 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
Empty file.
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.
Document or externalize hardcoded credentials.
The workflow contains hardcoded test/placeholder credentials (e.g.,
WORKOS_CLIENT_ID: "client_",WORKOS_API_KEY: "sk_test_",AGENT_TOKEN: "not-empty"). While these appear to be safe test values, they should be:Apply this diff to add clarifying documentation and consider externalizing sensitive values:
- name: Build run: pnpm turbo run build --filter=@unkey/dashboard env: + # Test/placeholder configuration for dashboard build in CI CI: 1 DATABASE_HOST: localhost:8080 DATABASE_USERNAME: unkey DATABASE_PASSWORD: password DATABASE_NAME: unkey UNKEY_WORKSPACE_ID: "not-empty" UNKEY_API_ID: "not-empty" UNKEY_WEBHOOK_KEYS_API_ID: "not-empty" AGENT_URL: "http://localhost:8080" AGENT_TOKEN: "not-empty" AUTH_PROVIDER: "workos" WORKOS_CLIENT_ID: "client_" WORKOS_API_KEY: "sk_test_" WORKOS_COOKIE_PASSWORD: "IAMACOOKIEPASSWORD" NEXT_PUBLIC_WORKOS_REDIRECT_URI: "http://localhost:3000/auth/sso-callback"📝 Committable suggestion
🤖 Prompt for AI Agents