ci.yml (1033B)
1 name: CI 2 3 on: 4 - pull_request 5 6 jobs: 7 lint-format-type: 8 runs-on: ubuntu-latest 9 10 steps: 11 - name: Checkout 12 uses: actions/checkout@v4 13 14 - name: Install Node.js 15 uses: actions/setup-node@v4 16 with: 17 node-version: 20 18 19 - uses: pnpm/action-setup@v3 20 name: Install pnpm 21 with: 22 version: 8 23 run_install: false 24 25 - name: Get pnpm store directory 26 shell: bash 27 run: | 28 echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV 29 30 - uses: actions/cache@v4 31 name: Setup pnpm cache 32 with: 33 path: ${{ env.STORE_PATH }} 34 key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} 35 restore-keys: | 36 ${{ runner.os }}-pnpm-store- 37 38 - name: Install dependencies 39 run: pnpm install 40 41 - name: Run ESLint 42 run: pnpm lint 43 44 - name: Run Prettier 45 run: pnpm prettier . --check 46 47 - name: Run type check 48 run: pnpm type-check