Skip to content

Commit

Permalink
Merge pull request #37 from abiriadev/setup-vitest
Browse files Browse the repository at this point in the history
setup vitest
  • Loading branch information
abiriadev authored Jun 9, 2024
2 parents c459ddc + b83b038 commit 12b2be6
Show file tree
Hide file tree
Showing 7 changed files with 729 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
.turbo
coverage
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand All @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion packages/seia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@
"scripts": {
"build": "swc src -d dist --strip-leading-paths",
"build:tsc": "tsc",
"coverage": "vitest run --coverage",
"coverage:watch": "vitest --coverage",
"doc": "typedoc",
"format": "prettier -w .",
"lint": "xo",
"prepack": "cp ../../README.md .",
"lint": "xo"
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@hono/node-server": "^1.11.1",
Expand All @@ -67,6 +71,7 @@
"@types/node": "^20.12.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitest/coverage-v8": "^1.6.0",
"chokidar": "^3.6.0",
"oclif": "^4.11.3",
"react": "19.0.0-beta-26f2496093-20240514",
Expand All @@ -76,6 +81,7 @@
"typedoc-material-theme": "^1.0.2",
"typedoc-plugin-zod": "^1.1.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"xo": "^0.58.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 12b2be6

Please sign in to comment.