Skip to content

Commit 4683c0c

Browse files
committed
Fix CI workflow
1 parent b4c586a commit 4683c0c

File tree

6 files changed

+240
-75
lines changed

6 files changed

+240
-75
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [ 20 ]
8+
node-version: [ 22 ]
99
steps:
1010
- uses: actions/checkout@v4
1111
- name: Install pnpm
1212
uses: pnpm/action-setup@v3
1313
with:
14-
version: 9.1.3
14+
version: 9.15.9
1515
- name: Use Node.js ${{ matrix.node-version }}
1616
uses: actions/setup-node@v4
1717
with:
@@ -26,4 +26,4 @@ jobs:
2626
- name: Upload report to Codecov
2727
uses: codecov/codecov-action@v4
2828
with:
29-
token: ${{ secrets.CODECOV_TOKEN }}
29+
token: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"private": true,
33
"scripts": {
44
"build": "turbo run build",
5-
"dev": "turbo run dev",
6-
"test": "turbo run test",
5+
"dev": "turbo run dev --filter=docs",
6+
"test": "turbo run test --filter=vue-currency-input",
7+
"coverage": "turbo run coverage --filter=vue-currency-input",
78
"lint": "turbo run lint",
8-
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
9-
"docs:dev": "turbo run dev --filter=docs",
10-
"docs:build": "turbo run build --filter=docs"
9+
"format": "prettier --write \"**/*.{ts,tsx,md}\""
1110
},
1211
"devDependencies": {
1312
"prettier": "^3.4.2",

packages/lib/eslint.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'eslint/config'
2-
import pluginVitest from '@vitest/eslint-plugin'
2+
// import pluginVitest from '@vitest/eslint-plugin'
33
import js from '@eslint/js'
44
import eslintConfigPrettier from 'eslint-config-prettier'
55
import tseslint from 'typescript-eslint'
@@ -8,10 +8,10 @@ export default defineConfig([
88
js.configs.recommended,
99
eslintConfigPrettier,
1010
...tseslint.configs.recommended,
11-
{
12-
...pluginVitest.configs.recommended,
13-
files: ['src/**/__tests__/*']
14-
},
11+
// {
12+
// ...pluginVitest.configs.recommended,
13+
// files: ['tests/**/*']
14+
// },
1515
{
1616
ignores: ['dist/**']
1717
}

packages/lib/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"scripts": {
2626
"build": "vite build",
2727
"test": "vitest",
28+
"coverage": "vitest run --coverage",
2829
"lint": "eslint . --max-warnings 0"
2930
},
3031
"dependencies": {
@@ -33,13 +34,14 @@
3334
"devDependencies": {
3435
"@testing-library/dom": "^8.20.1",
3536
"@testing-library/user-event": "^13.5.0",
37+
"@vitest/coverage-v8": "^3.2.2",
3638
"@vitest/eslint-plugin": "^1.1.44",
3739
"@vue/test-utils": "^2.4.6",
3840
"eslint": "^9.26.0",
3941
"jsdom": "^26.1.0",
4042
"typescript": "~5.7.3",
4143
"vite": "^6.3.5",
4244
"vite-plugin-dts": "^4.5.3",
43-
"vitest": "^3.1.3"
45+
"vitest": "^3.2.2"
4446
}
4547
}

0 commit comments

Comments
 (0)