-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add conventional commits validation
- Loading branch information
1 parent
f15a497
commit 79c8f8b
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,19 @@ on: | |
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
conventional-commits: | ||
name: Conventional Commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: webiny/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories. | ||
allowed-commit-types: "feat,fix,BREAKING CHANGE,docs,ci,chore,refactor,test,perf,style" # Optional, set if you want a subset of commit types to be allowed. | ||
|
||
build: | ||
needs: conventional-commits | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -22,7 +33,7 @@ jobs: | |
- name: Build with Maven | ||
run: mvn -B package --file app/pom.xml | ||
test: | ||
|
||
needs: conventional-commits | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|