mirror of
https://github.com/Infisical/infisical.git
synced 2025-08-05 07:30:33 +00:00
36 lines
923 B
YAML
36 lines
923 B
YAML
name: Check Frontend Type and Lint check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
paths:
|
|
- "frontend/**"
|
|
- "!frontend/README.md"
|
|
- "!frontend/.*"
|
|
- "frontend/.eslintrc.js"
|
|
|
|
jobs:
|
|
check-fe-ts-lint:
|
|
name: Check Frontend Type and Lint check
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- name: ☁️ Checkout source
|
|
uses: actions/checkout@v3
|
|
- name: 🔧 Setup Node 20
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "20"
|
|
cache: "npm"
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- name: 📦 Install dependencies
|
|
run: npm install
|
|
working-directory: frontend
|
|
- name: 🏗️ Run Type check
|
|
run: npm run type:check
|
|
working-directory: frontend
|
|
- name: 🏗️ Run Link check
|
|
run: npm run lint:fix
|
|
working-directory: frontend
|