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: validate | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_requests: | ||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20.x | ||
- name: Install node dependencies | ||
run: | | ||
npm i -g pnpm | ||
pnpm i | ||
- name: Run lint | ||
run: | | ||
pnpm run lint | ||
- name: Type check | ||
run: | | ||
pnpm run check | ||
- name: Validate JSON files | ||
run: | | ||
pnpm run validate |