chore: husky/commit-msg --edit -> --message
#277
This file contains hidden or 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: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| unit-test: | |
| # let's ignore release commits, otherwise it'll try to run twice | |
| if: | | |
| !startsWith(github.event.head_commit.message , 'chore(release):') && | |
| !startsWith(github.event.head_commit.message , 'docs') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup cache for Chromium binary | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/puppeteer | |
| key: chromium-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Set node version to latest | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: latest | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: node node_modules/puppeteer/install.mjs | |
| - name: Run typecheck | |
| run: npm run typecheck | |
| - name: Run unit tests | |
| run: npm run test -- --package-name '*' | |
| - name: Run build | |
| run: npm run build | |