Saltar al contenido
mypipelines
Pipelines Actions Gradle Buscar
React· Consumer template ·on: pull_request

React Pr Develop

Template: PR to develop validation Copy to: .github/workflows/pr-develop.yml Triggers on pull requests targeting develop branch Runs: commit-lint + build + test + sonar + quality gate Required secrets

templates/react-pr-develop.yml

templates/react-pr-develop.yml
# Template: PR to develop validation
# Copy to: .github/workflows/pr-develop.yml
#
# Triggers on pull requests targeting develop branch
# Runs: commit-lint + build + test + sonar + quality gate
#
# Required secrets for SonarQube (optional):
# - SONAR_URL: SonarQube server URL
# - SONAR_TOKEN: SonarQube authentication token
#
# Customize:
# - build_output_dir: Set to 'dist' for Vite projects
name: PR Validation
on:
pull_request:
branches:
- develop
jobs:
validate:
uses: <org>/ci-templates/.github/workflows/react-main-pipeline.yml@main
with:
run_commit_lint: true
run_build: true
run_test: true
run_code_analysis: true
code_analysis_tool: 'sonar'
secrets: inherit