From ca602bd0bd0b12bb68eed7d1f466836c6f7552ca Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 25 May 2025 15:51:31 +0200 Subject: [PATCH] Refactor TypeScript workflow to set working directory in defaults --- .github/workflows/typescript.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 6ae6533..62f0f6e 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -12,6 +12,9 @@ jobs: type-check: name: TypeScript Type Check runs-on: ubuntu-latest + defaults: + run: + working-directory: ./app steps: - name: Checkout code @@ -22,17 +25,14 @@ jobs: with: node-version: "22" cache: "npm" + cache-dependency-path: "package-lock.json" - name: Install dependencies run: npm ci - working-directory: ./app - name: Run TypeScript type check run: npm run type-check - working-directory: ./app - # Optional: Run ESLint if you have it configured - name: Run ESLint run: npm run lint - working-directory: ./app - continue-on-error: true # Make this optional for now + continue-on-error: true