feat(frontend): ajout chemins dans le pipeline CI

This commit is contained in:
ineszang
2026-09-15 16:46:16 +02:00
parent ff6e3c288c
commit 3ef7de5baa
@@ -16,11 +16,14 @@ on:
- test - test
- deploy - deploy
- all - all
push:
# push: paths:
# branches: [ "dev" ] - "apps/frontend/**"
- ".github/workflows/dev-front-pipeline.yml"
pull_request: pull_request:
branches: [ "dev" ] paths:
- "apps/frontend/**"
- ".github/workflows/dev-front-pipeline.yml"
jobs: jobs:
@@ -40,6 +43,7 @@ jobs:
if: ${{ github.event.inputs.job_choice == 'test' }} if: ${{ github.event.inputs.job_choice == 'test' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
@@ -47,18 +51,19 @@ jobs:
- run: npm ci - run: npm ci
- run: npm test -- --watch=false - run: npm test -- --watch=false
# build: build:
# # si l'utilisateur a choise le job 'build' ou l'ensemble des jobs avec l'option 'all' # si l'utilisateur a choise le job 'build' ou l'ensemble des jobs avec l'option 'all'
# if: ${{ github.event.inputs.job_choice == 'build' || github.event.inputs.job_choice == 'all' }} if: ${{ github.event.inputs.job_choice == 'build' || github.event.inputs.job_choice == 'all' }}
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/setup-node@v4 - uses: actions/checkout@v4
# with: - uses: actions/setup-node@v4
# node-version: 24 with:
# cache: npm node-version: 24
cache: npm
# - run: npm ci - run: npm ci
# - run: npm run build - run: npm run build
# deploy: # deploy:
# if: ${{ github.event.inputs.job_choice == 'deploy' }} # if: ${{ github.event.inputs.job_choice == 'deploy' }}