ft_transcendence/.github/workflows/lint.yml
Raphael 61da545281
fix(ci/lint): indentation was wrong
- correcting the indentation (yml de mort)
2025-09-28 22:53:24 +02:00

38 lines
791 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: '20'
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
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