Skip to content

Commit

Permalink
chore: Add Feature branches setup and conventional commits validation
Browse files Browse the repository at this point in the history
  • Loading branch information
agneszitte committed Dec 20, 2023
1 parent 0bb3ca4 commit e3399a9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/azure-devops-commitsar.yml
Original file line number Diff line number Diff line change
@@ -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
condition: ne(variables['System.PullRequest.PullRequestNumber'], '')
2 changes: 2 additions & 0 deletions .github/workflows/azure-static-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ trigger:
- stable
- release/stable/*
- legacy/*
- feature/*

paths:
include:
Expand All @@ -27,6 +28,7 @@ pr:
- stable
- release/stable/*
- legacy/*
- feature/*

paths:
include:
Expand All @@ -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
Expand Down

0 comments on commit e3399a9

Please sign in to comment.