diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58d9ce9..25de492 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,34 +1,25 @@ name: ci - -on: push +on: [push] jobs: ci: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - node: [22] + runs-on: docker # On dit au runner d'utiliser Docker directement + container: + image: node:22-bookworm # On utilise une image Node officielle (plus légère) steps: - name: Checkout - uses: actions/checkout@v6 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - - - name: Install node - uses: actions/setup-node@v6 - with: - node-version: ${{ matrix.node }} - cache: pnpm + uses: actions/checkout@v4 + # Plus besoin de setup-node ou de setup-pnpm ! + # On installe pnpm directement en ligne de commande, c'est bien plus rapide. - name: Install dependencies - run: pnpm install + run: | + corepack enable + corepack prepare pnpm@latest --activate + pnpm install - - name: Lint - run: pnpm run lint - - - name: Typecheck - run: pnpm run typecheck + - name: Lint & Check + run: | + pnpm run lint + pnpm run typecheck \ No newline at end of file