diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9b36a0..1aaa111 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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