-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * feat: roles * ci: rename steps * ci: do not fail fast * ci: combine linting * ci: combine linting * ci: combine linting * ci: test api * wip * wip * chore: merge * feat: ui for root key permission settings * feat: new root keys * feat: ui * chore: merge * test: use vitest * chore(pr.yaml): update workflow file to use unit_test.yaml instead of test_packages.yaml feat(unit_test.yaml): add unit test workflow for multiple paths using matrix strategy * fix: tests * fix: tests * docs: explain how to run tests * chore: drop strict mode * lint: knip * fix(test_api.yaml): change test command from 'pnpm test:e2e' to 'pnpm test:routes'
- Loading branch information
Showing
84 changed files
with
1,061 additions
and
942 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 |
---|---|---|
|
@@ -36,5 +36,4 @@ runs: | |
shell: bash | ||
run: | | ||
pnpm install --recursive | ||
npm i -g bun | ||
npm i -g wrangler |
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
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Unit Tests | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
path: | ||
- "./internal/billing" | ||
- "./internal/hash" | ||
- "./internal/hash" | ||
- "./internal/keys" | ||
- "./internal/rbac" | ||
- "./pacakges/nextjs" | ||
- "./packages/api" | ||
- "./packages/hono" | ||
- "./packages/nuxt" | ||
|
||
name: Test ${{matrix.path}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
||
- name: Install | ||
uses: ./.github/actions/install | ||
|
||
- name: Build | ||
run: pnpm turbo run build --filter=${{matrix.path}} | ||
|
||
- name: Test | ||
run: pnpm turbo run test --filter=${{matrix.path}} |
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ dist | |
.vscode | ||
.dev.vars | ||
.wrangler | ||
.vitest | ||
.vitest |
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 +1,2 @@ | ||
.wrangler | ||
.vitest |
Binary file not shown.
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
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.
3526172
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.
Successfully deployed to the following URLs:
web – ./apps/web
unkey-web-lac.vercel.app
www.unkey.dev
web-unkey.vercel.app
web-git-main-unkey.vercel.app
unkey.dev