chore: replace husky and lint-staged with lefthook #142
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
cache: "npm" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint Project | |
run: npm run lint | |
- name: Run Unit Tests | |
run: npm run test:unit | |
- name: Build Package | |
run: npm run build | |
- name: Generate Test Fixtures | |
run: npm run generate | |
- name: Run Integration Tests | |
run: npm run test:int |