Skip to content

Commit

Permalink
Test multiple node versions (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer authored Jun 23, 2024
1 parent e103deb commit 71796d2
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 316 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: PR
name: Checks

on:
pull_request:
types: [opened, synchronize]

jobs:
lint:
name: Lint & Test
name: Node ${{ matrix.node-version }}
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
timeout-minutes: 15
runs-on: ubuntu-latest

Expand All @@ -17,7 +21,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
}
},
"types": "./dist/index.d.ts",
"files": [
"dist",
"README"
],
"files": ["dist", "README"],
"engines": { "node": ">=18" },
"scripts": {
"prepublish": "pnpm build",
"storybook": "storybook dev -p 6006",
Expand All @@ -32,12 +30,7 @@
"type": "git",
"url": "https://github.com/KaiSpencer/react-trello-ts"
},
"keywords": [
"react",
"trello",
"board",
"typescript"
],
"keywords": ["react", "trello", "board", "typescript"],
"author": "Kai Spencer",
"license": "MIT",
"bugs": {
Expand Down Expand Up @@ -65,7 +58,7 @@
"@storybook/react": "^8.1.10",
"@storybook/react-vite": "^8.1.10",
"@storybook/test-runner": "^0.18.2",
"@types/node": "^18.19.36",
"@types/node": "^18.19.39",
"@types/react": "^16.14.60",
"@types/react-dom": "^16.9.24",
"@types/styled-components": "^5.1.34",
Expand All @@ -79,7 +72,7 @@
"start-server-and-test": "^2.0.4",
"storybook": "^8.1.10",
"styled-components": "^5.3.11",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"unbuild": "3.0.0-rc.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 71796d2

Please sign in to comment.