diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 00000000..d9d22192 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,35 @@ +name: Web Frontend + +on: + push: + branches: [master, main] + paths: + - 'web/**' + pull_request: + branches: [master, main] + paths: + - 'web/**' + +permissions: + contents: read + +jobs: + lint: + name: Lint & Type Check + runs-on: ubuntu-latest + defaults: + run: + working-directory: web + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + cache-dependency-path: web/package-lock.json + - name: Install dependencies + run: npm ci + - name: Run ESLint + run: npm run lint + - name: TypeScript type check + run: npx tsc --noEmit