feat(frontend): ajout du job de build
This commit is contained in:
@@ -24,23 +24,6 @@ on:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
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:
|
sonarqube:
|
||||||
name: SonarQube
|
name: SonarQube
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -57,10 +40,28 @@ 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:
|
||||||
- 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:
|
# deploy:
|
||||||
if: ${{ github.event.inputs.job_choice == 'deploy' }}
|
# if: ${{ github.event.inputs.job_choice == 'deploy' }}
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- run: echo "DEPLOY job is running"
|
# - run: echo "DEPLOY job is running"
|
||||||
|
|||||||
Reference in New Issue
Block a user