add toolkit content #2270
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: Formatting / Lint | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
Format: | |
name: Test formatting via prettier/lint... | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- name: before_install | |
run: | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf | |
&& sudo sysctl -p | |
- name: Install dependencies | |
run: pnpm install | |
- name: prettier:check | |
run: pnpm prettier | |
- name: lint | |
run: pnpm lint |