Skip to content

ci: auto check code quality when push and pr #2

ci: auto check code quality when push and pr

ci: auto check code quality when push and pr #2

Workflow file for this run

name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GitHub_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
run: |
echo "public-hoist-pattern[]=@types*" >> .npmrc
pnpm install
- name: Run Lint
run: |
pnpm lint:check
- name: Run Build
run: |
pnpm build
- name: Run Test
run: |
pnpm test