From 3ef7de5baac425c0e4088b96819fae275e66bc07 Mon Sep 17 00:00:00 2001 From: ineszang Date: Tue, 15 Sep 2026 16:46:16 +0200 Subject: [PATCH] feat(frontend): ajout chemins dans le pipeline CI --- .../{dev-front-pipeline.yml => frontend.yml} | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) rename .github/workflows/{dev-front-pipeline.yml => frontend.yml} (66%) diff --git a/.github/workflows/dev-front-pipeline.yml b/.github/workflows/frontend.yml similarity index 66% rename from .github/workflows/dev-front-pipeline.yml rename to .github/workflows/frontend.yml index 17f4010..923baa1 100644 --- a/.github/workflows/dev-front-pipeline.yml +++ b/.github/workflows/frontend.yml @@ -16,11 +16,14 @@ on: - test - deploy - all - - # push: - # branches: [ "dev" ] + push: + paths: + - "apps/frontend/**" + - ".github/workflows/dev-front-pipeline.yml" pull_request: - branches: [ "dev" ] + paths: + - "apps/frontend/**" + - ".github/workflows/dev-front-pipeline.yml" jobs: @@ -40,6 +43,7 @@ jobs: if: ${{ github.event.inputs.job_choice == 'test' }} runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 24 @@ -47,18 +51,19 @@ jobs: - run: npm ci - run: npm test -- --watch=false - # build: - # # 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' }} - # runs-on: ubuntu-latest - # steps: - # - uses: actions/setup-node@v4 - # with: - # node-version: 24 - # cache: npm + build: + # 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' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm - # - run: npm ci - # - run: npm run build + - run: npm ci + - run: npm run build # deploy: # if: ${{ github.event.inputs.job_choice == 'deploy' }}