-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from abiriadev/setup-vitest
setup vitest
- Loading branch information
Showing
7 changed files
with
729 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.CHANGESETS_GITHUB_RELEASE_TOKEN }} | ||
- uses: pnpm/action-setup@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run lints | ||
run: pnpm exec turbo run lint | ||
- name: Run tests | ||
run: pnpm exec turbo run test | ||
- name: Run tests | ||
run: pnpm exec turbo run coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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,3 +1,4 @@ | ||
dist | ||
node_modules | ||
.turbo | ||
coverage |
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 |
---|---|---|
|
@@ -5,8 +5,12 @@ | |
"type": "module", | ||
"scripts": { | ||
"build": "turbo build", | ||
"coverage": "vitest run --coverage", | ||
"coverage:watch": "vitest --coverage", | ||
"format": "prettier -w .", | ||
"publish": "changeset publish", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"version": "changeset version" | ||
}, | ||
"keywords": [], | ||
|
@@ -15,8 +19,10 @@ | |
"devDependencies": { | ||
"@changesets/cli": "^2.27.5", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"prettier": "^3.2.5", | ||
"turbo": "^1.13.3" | ||
"turbo": "^1.13.3", | ||
"vitest": "^1.6.0" | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0" | ||
|
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.