chore: move from pretty-quick to lint-staged to support Prettier v3 #88
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: Main Workflow | |
on: [push, pull_request] | |
jobs: | |
run: | |
name: Run | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
node: [16.15.1, 18, 20] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Setup Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup pnpm | |
run: npm install pnpm -g | |
- name: Install | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
- name: Test | |
run: pnpm test |