Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Feature branches setup and conventional commits validation #1060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: UseDotNet@2
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we will be using Azure, then this shouldn't be in .github/workflows


- job: Windows_Android_Mobile
strategy:
maxParallel: 3
Expand Down
Loading