ci: only trigger for certain folders

This commit is contained in:
Carlos Florêncio
2026-01-15 19:30:56 +00:00
parent 673d9f7d96
commit 56a901a3ca
2 changed files with 17 additions and 4 deletions
+6
View File
@@ -3,8 +3,14 @@ name: Backend Tests
on:
push:
branches: [main]
paths:
- 'apps/backend/**'
- '.github/workflows/backend-tests.yml'
pull_request:
branches: [main]
paths:
- 'apps/backend/**'
- '.github/workflows/backend-tests.yml'
jobs:
test:
+11 -4
View File
@@ -3,8 +3,18 @@ name: Frontend Tests
on:
push:
branches: [main]
paths:
- "apps/web/**"
- "apps/packages/**"
- "apps/pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yml"
pull_request:
branches: [main]
paths:
- "apps/web/**"
- "apps/packages/**"
- "apps/pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yml"
jobs:
frontend:
@@ -33,11 +43,8 @@ jobs:
echo "=== Repository root ==="
ls -la
echo ""
echo "=== apps directory ==="
ls -la apps/
echo ""
echo "=== Looking for lockfiles ==="
find . -name "pnpm-lock.yaml"
find . -name "pnpm-lock.yaml" | true
- name: Install dependencies
run: pnpm install --frozen-lockfile