Skip to content

Commit

Permalink
Node 21 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhammes authored Feb 20, 2024
1 parent cbf471b commit 4183415
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 2,556 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,11 @@ env:
PNPM_VERSION: 8

jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup NodeJS ${{ matrix.node }}
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ matrix.node }}
- run: pnpm install
- run: pnpm start
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
node: [18, 20, 21]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand All @@ -38,4 +21,6 @@ jobs:
cache: pnpm
node-version: ${{ matrix.node }}
- run: pnpm install
- run: pnpm test -- --colors
- run: pnpm build
- run: pnpm start
- run: pnpm test
16 changes: 0 additions & 16 deletions jest.config.ts

This file was deleted.

9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,15 @@
"private": true,
"type": "module",
"dependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"devDependencies": {
"@swc/core": "^1.4.2",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^18.19.17",
"jest": "^29.7.0",
"@types/node": "^20.11.19",
"tsx": "^4.7.1"
},
"scripts": {
"start": "tsx src/index.ts",
"build": "tsc",
"test": "jest"
"test": "node --import tsx --test tests/lib.test.ts"
}
}
Loading

0 comments on commit 4183415

Please sign in to comment.