diff --git a/.github/workflows/dev-front-pipeline.yml b/.github/workflows/dev-front-pipeline.yml index 28abac2..17f4010 100644 --- a/.github/workflows/dev-front-pipeline.yml +++ b/.github/workflows/dev-front-pipeline.yml @@ -24,23 +24,6 @@ on: jobs: - build: - if: ${{ github.event.inputs.job_choice == 'build' }} - # The type of runner that the job will run on - runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - # Runs a set of commands using the runners shell - # - name: Run a multi-line script - # run: | - # echo Add other actions to build, - # echo test, and deploy your project. - sonarqube: name: SonarQube runs-on: ubuntu-latest @@ -57,10 +40,28 @@ jobs: if: ${{ github.event.inputs.job_choice == 'test' }} runs-on: ubuntu-latest steps: - - run: echo "TEST job is running" + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + - 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 + + # - run: npm ci + # - run: npm run build - deploy: - if: ${{ github.event.inputs.job_choice == 'deploy' }} - runs-on: ubuntu-latest - steps: - - run: echo "DEPLOY job is running" + # deploy: + # if: ${{ github.event.inputs.job_choice == 'deploy' }} + # runs-on: ubuntu-latest + # steps: + # - run: echo "DEPLOY job is running"