add timout to pull requests

This commit is contained in:
Maidul Islam
2023-05-24 10:48:11 -04:00
parent e65c6568e1
commit f3dc7fcf7b
2 changed files with 13 additions and 17 deletions
@@ -13,6 +13,7 @@ jobs:
check-be-pr: check-be-pr:
name: Check name: Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15
steps: steps:
- name: ☁️ Checkout source - name: ☁️ Checkout source
+12 -17
View File
@@ -2,40 +2,35 @@ name: Check Frontend Pull Request
on: on:
pull_request: pull_request:
types: [ opened, synchronize ] types: [opened, synchronize]
paths: paths:
- 'frontend/**' - "frontend/**"
- '!frontend/README.md' - "!frontend/README.md"
- '!frontend/.*' - "!frontend/.*"
- 'frontend/.eslintrc.js' - "frontend/.eslintrc.js"
jobs: jobs:
check-fe-pr: check-fe-pr:
name: Check name: Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15
steps: steps:
- - name: ☁️ Checkout source
name: ☁️ Checkout source
uses: actions/checkout@v3 uses: actions/checkout@v3
- - name: 🔧 Setup Node 16
name: 🔧 Setup Node 16
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '16' node-version: "16"
cache: 'npm' cache: "npm"
cache-dependency-path: frontend/package-lock.json cache-dependency-path: frontend/package-lock.json
- - name: 📦 Install dependencies
name: 📦 Install dependencies
run: npm ci --only-production --ignore-scripts run: npm ci --only-production --ignore-scripts
working-directory: frontend working-directory: frontend
# - # -
# name: 🧪 Run tests # name: 🧪 Run tests
# run: npm run test:ci # run: npm run test:ci
# working-directory: frontend # working-directory: frontend
- - name: 🏗️ Run build
name: 🏗️ Run build
run: npm run build run: npm run build
working-directory: frontend working-directory: frontend