Skip to content

Commit

Permalink
chore: Update node version in CI and Volta (#6)
Browse files Browse the repository at this point in the history
* chore/update-node-ci-volta

* fix: pnpm version to latest

* chore: update to latest versions

* chore: add test coverage command (#7)

* chore: add test coverage command

* fix: versions in CI

* fix: lint

---------

Co-authored-by: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com>

---------

Co-authored-by: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com>
  • Loading branch information
MehulKChaudhari and prakashchoudhary07 authored Nov 8, 2024
1 parent e1efa4b commit 5777dd0
Show file tree
Hide file tree
Showing 5 changed files with 3,056 additions and 2,253 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ on:
jobs:
lint_test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: pnpm

- name: Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Coverage directory used by tools like istanbul
coverage
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"format:fix": "prettier --write .",
"preview": "vite preview",
"test": "vitest",
"test:watch": "vitest --watch"
"test:watch": "vitest --watch",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"react": "^18.3.1",
Expand All @@ -27,6 +28,7 @@
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^2.1.1",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -46,7 +48,7 @@
"vitest": "^2.1.4"
},
"volta": {
"node": "20.0.0",
"pnpm": "8.0.0"
"node": "22.11.0",
"pnpm": "9.12.3"
}
}
Loading

0 comments on commit 5777dd0

Please sign in to comment.