Skip to content

Commit

Permalink
ci: add conventional commits validation
Browse files Browse the repository at this point in the history
  • Loading branch information
brunograna committed Feb 19, 2024
1 parent f15a497 commit 79c8f8b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 79c8f8b

Please sign in to comment.