chore: init pipeline frontend
This commit is contained in:
@@ -0,0 +1,53 @@
|
|||||||
|
# Pipeline à multiple scénarios
|
||||||
|
# pour l'environnement de dev
|
||||||
|
|
||||||
|
name: Dev Pipeline (frontend)
|
||||||
|
|
||||||
|
on:
|
||||||
|
# workflow_dispatch -> lancement manuel des jobs
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
job_choice:
|
||||||
|
type: choice
|
||||||
|
description: "Choix du job"
|
||||||
|
options:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
- all
|
||||||
|
|
||||||
|
# push:
|
||||||
|
# branches: [ "dev" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "dev" ]
|
||||||
|
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
test:
|
||||||
|
if: ${{ github.event.inputs.job_choice == 'test' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "TEST job is running"
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
if: ${{ github.event.inputs.job_choice == 'deploy' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "DEPLOY job is running"
|
||||||
Reference in New Issue
Block a user