chore(git): replace husky with lefthook #124
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, pull_request] | |
jobs: | |
run-ci: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
name: Run Type Check & Linters | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Enable corepack | |
shell: bash | |
run: corepack enable yarn | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'yarn' | |
- name: Install dependencies | |
uses: ./.github/actions/yarn-nm-install | |
- name: Check types & linting | |
run: yarn lint | |
- name: Run tests | |
run: yarn test:ci | |
- name: Build package | |
run: yarn build | |
- name: Check commits messages | |
uses: wagoid/commitlint-github-action@v6 |