ft_transcendence/.github/workflows/lint.yml
Raphael 3617ce6361
fix(ci/lint): adding the correct version on pnpm
- Using the same version of the flake (please i use nix btw)
2025-09-28 22:57:49 +02:00

38 lines
792 B
YAML

name: Build & Linter
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
permissions:
contents: read
jobs:
build:
name: Build & Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
run_install: false
- name: Install dependencies with pnpm
run: pnpm --prefix=./src/ install --frozen-lockfile
- name: Check linting
run: pnpm --prefix=./src/ exec eslint . --max-warnings=0
- name: Build
run: pnpm --prefix=./src/ run build