Skip to content

Commit

Permalink
feat(43): add vitest & github action
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Oct 29, 2024
1 parent 6d61345 commit ef58953
Show file tree
Hide file tree
Showing 9 changed files with 2,242 additions and 206 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ jobs:
env:
SKIP_ENV_VALIDATION: true
DATABASE_URL: postgres://test:test@localhost:5432/db

- name: Unit Test
run: ${{ steps.detect-package-manager.outputs.manager }} run test
env:
SKIP_ENV_VALIDATION: true

- name: Lint Prisma
run: ${{ steps.detect-package-manager.outputs.manager }} run lint:prisma
Expand All @@ -89,4 +94,9 @@ jobs:
env:
DATABASE_URL: postgres://test:test@localhost:5432/db
NEXTAUTH_SECRET: secret
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_URL: http://localhost:3000

- name: Unit Test Coverage
run: ${{ steps.detect-package-manager.outputs.manager }} run test:coverage
env:
SKIP_ENV_VALIDATION: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
/out/
next-env.d.ts

# coverage
coverage

# production
/build

Expand Down
Loading

0 comments on commit ef58953

Please sign in to comment.