From e3399a9dcc2925d381a49ee84f0273620bcdf834 Mon Sep 17 00:00:00 2001 From: agneszitte Date: Wed, 20 Dec 2023 17:44:24 -0500 Subject: [PATCH] chore: Add Feature branches setup and conventional commits validation --- .github/workflows/azure-devops-commitsar.yml | 27 +++++++------------- .github/workflows/azure-static-webapp.yml | 2 ++ azure-pipelines.yml | 9 +++++++ 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/azure-devops-commitsar.yml b/.github/workflows/azure-devops-commitsar.yml index 058177da1..407b04f7c 100644 --- a/.github/workflows/azure-devops-commitsar.yml +++ b/.github/workflows/azure-devops-commitsar.yml @@ -1,22 +1,13 @@ -parameters: - vmImage: '' - -jobs: -- job: Commitsar +steps: +- task: Commitsar displayName: 'Conventional Commits Validation' - pool: - vmImage: ${{ parameters.vmImage }} - - steps: - - checkout: self - clean: true - - - bash: | - curl -L -O https://github.com/aevea/commitsar/releases/download/v0.16.0/commitsar_0.16.0_Linux_x86_64.tar.gz - tar -xzf commitsar_0.16.0_Linux_x86_64.tar.gz - ./commitsar +- checkout: self + clean: true - condition: ne(variables['System.PullRequest.PullRequestNumber'], '') +- bash: | + curl -L -O https://github.com/aevea/commitsar/releases/download/v0.16.0/commitsar_0.16.0_Linux_x86_64.tar.gz + tar -xzf commitsar_0.16.0_Linux_x86_64.tar.gz + ./commitsar - - template: templates/generate-changelog.yml \ No newline at end of file + condition: ne(variables['System.PullRequest.PullRequestNumber'], '') \ No newline at end of file diff --git a/.github/workflows/azure-static-webapp.yml b/.github/workflows/azure-static-webapp.yml index a46cd452d..13e8d711f 100644 --- a/.github/workflows/azure-static-webapp.yml +++ b/.github/workflows/azure-static-webapp.yml @@ -5,11 +5,13 @@ on: branches: - master - release/* + - feature/* pull_request: types: [opened, synchronize, reopened, closed] branches: - master - release/* + - feature/* jobs: build_and_deploy_job: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e2d4d5a9b..bbac112ea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,6 +7,7 @@ trigger: - stable - release/stable/* - legacy/* + - feature/* paths: include: @@ -27,6 +28,7 @@ pr: - stable - release/stable/* - legacy/* + - feature/* paths: include: @@ -43,6 +45,13 @@ variables: IsCanaryBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/')] jobs: +- job: Conventional_Commits_Validation + pool: + vmImage: ubuntu-latest + + steps: + - template: .github/workflows/azure-devops-commitsar.yml + - job: Windows_Android_Mobile strategy: maxParallel: 3