Skip to content

Commit

Permalink
🐛 fix: Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 8, 2023
1 parent 6385312 commit 9099c61
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
push:
branches:
- main
- alpha
- beta
- rc

jobs:
test:
Expand All @@ -27,8 +24,8 @@ jobs:
- name: Install deps
run: pnpm install

- name: lint
run: pnpm run lint && pnpm run doctor
- name: CI
run: pnpm run ci

- name: Test
run: pnpm run test
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '18'

- name: Install deps
run: pnpm install

- name: CI
run: pnpm run ci

- name: Test and coverage
run: pnpm run test:coverage

Expand Down
10 changes: 10 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
# lobe-commit as a commit hook
if npx -v >&/dev/null
then
exec < /dev/tty
npx -c "lobe-commit --hook $1 $2"
else
exec < /dev/tty
lobe-commit --hook $1 $2
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"scripts": {
"build": "father build",
"ci": "npm run lint && npm run type-check",
"ci": "npm run lint && npm run type-check && npm run doctor",
"dev": "father dev",
"doctor": "father doctor",
"lint": "eslint \"{src,api,docs}/**/*.{js,jsx,ts,tsx}\" --fix",
Expand Down

0 comments on commit 9099c61

Please sign in to comment.