Skip to content

Commit

Permalink
ci: add tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoson committed Feb 21, 2023
1 parent 54f8967 commit c96d9c5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: main
pull_request:
branches: main

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: corepack enable
- run: pnpm i
- run: pnpm run test:types

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: corepack enable
- run: pnpm i
- run: pnpm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"build": "shx rm -rf ./dist && tsup src/index.ts --dts --format esm",
"dev": "vite",
"prepublishOnly": "npm run build",
"release": "tsc --noEmit && bumpp --all",
"release": "bumpp --all",
"test": "vitest run",
"test-dev": "vitest watch"
"test:dev": "vitest watch",
"test:types": "tsc --noEmit"
},
"keywords": [
"components",
Expand Down

0 comments on commit c96d9c5

Please sign in to comment.