Skip to content

Commit

Permalink
chore: add github test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Nov 21, 2023
1 parent 112b0e6 commit fec9aa6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on: [push]
jobs:
Run-Test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: pnpm i
- run: pnpm run test
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"husky:pre-commit": "lint-staged",
"husky:commit-msg": "commitlint --edit ${1}",
"bundle": "rimraf dist && pnpm run build && gulp bundle",
"test": "pnpm run tscheck",
"tscheck": "tsc --noEmit",
"watch": "tsc --watch",
"build": "tsc --sourceMap false"
},
Expand Down

0 comments on commit fec9aa6

Please sign in to comment.