This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
chore(deps): update pnpm to v9.4.0 #407
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: Code check | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Code check | |
env: | |
SKIP_ENV_VALIDATION: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install deps | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Run lint | |
run: pnpm lint | |
- name: Run format check | |
run: pnpm format:check | |
- name: Run typescript | |
run: pnpm typecheck | |
- name: Run tests | |
if: always() | |
run: pnpm test:coverage | |
- name: 'Report Coverage (packages)' | |
if: always() # Also generate the report if tests are failing | |
uses: davelosert/vitest-coverage-report-action@v2 |