Skip to content

Commit

Permalink
💚 Make breaking changes possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwojnowski committed Oct 5, 2023
1 parent 54167d6 commit c6cb5ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check commit message for breaking changes
id: breaking-commit-message
run: |
COMMIT_MSG=$(git log --format=%B -n 1)
echo "$COMMIT_MSG" | grep -qE "\[breaking\]" && echo "BREAKING=true" >> $GITHUB_OUTPUT || echo "BREAKING=false" >> $GITHUB_OUTPUT
continue-on-error: true
- name: Compile and test
run: sbt +test scalafmtCheckAll +mimaReportBinaryIssues
run: sbt +test scalafmtCheckAll
- name: MiMa check
if: steps.breaking-commit-message.outputs.BREAKING != 'true'
run: sbt +mimaReportBinaryIssues

0 comments on commit c6cb5ab

Please sign in to comment.