Skip to content

Commit

Permalink
Add test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Apr 22, 2024
1 parent 849b518 commit b0dd4f1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- run: pnpm install
- run: pnpm run test
- run: pnpm run prepublishOnly
- run: pnpm run docs:build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"test:lint": "eslint src test",
"test:format": "prettier --check src test",
"build": "rm -rf dist && rollup -c",
"prepublishOnly": "npm run build",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"docs:deploy": "npm run docs:build && gh-pages -d docs/.vitepress/dist"
"docs:deploy": "npm run docs:build && gh-pages -d docs/.vitepress/dist",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"d3-hierarchy": "^3.1.2",
Expand Down

0 comments on commit b0dd4f1

Please sign in to comment.