chore: add husky pre-commit and pre-push hooks
This commit is contained in:
parent
4d64d50598
commit
35e54014b3
5 changed files with 304 additions and 33 deletions
|
|
@ -5,6 +5,28 @@ on:
|
|||
branches: [main]
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: apt-get update && apt-get install -y nodejs
|
||||
- name: Checkout code
|
||||
uses: https://data.forgejo.org/actions/checkout@v4
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
- name: Build shared packages
|
||||
run: pnpm --filter @lila/shared build && pnpm --filter @lila/db build
|
||||
- name: Format check
|
||||
run: pnpm format:check
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
- name: Type-check
|
||||
run: pnpm typecheck
|
||||
- name: Test
|
||||
run: pnpm test:run
|
||||
|
||||
build-and-deploy:
|
||||
runs-on: docker
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue