Skip to content

Commit

Permalink
chore: update tests and add action (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario authored Nov 14, 2024
1 parent 145b9fb commit 758f8ba
Show file tree
Hide file tree
Showing 36 changed files with 10,020 additions and 2,511 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches:
- main
- develop

pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9.1.1

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Run test
run: pnpm -r test:run
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
"jiti": "^1.21.0",
"pathe": "^1.1.1"
},
"private": true
"private": true,
"packageManager": "[email protected]"
}
4 changes: 3 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
"@es-js/esbabel": "workspace:*",
"@putout/bundle": "^3.15.0",
"@types/node": "^20.9.0",
"@types/prettier": "^2.7.3",
"prettier": "^2.8.8",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vite": "^5.1.1",
"vitest": "^1.2.2"
"vitest": "^2.1.5"
},
"exports": {
".": {
Expand Down
497 changes: 193 additions & 304 deletions packages/core/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/esbabel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vite": "^5.1.1",
"vitest": "^1.2.2"
"vitest": "^2.1.5"
},
"exports": {
".": {
Expand Down
Loading

0 comments on commit 758f8ba

Please sign in to comment.