-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 937 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test
on:
workflow_dispatch:
pull_request:
branches:
- '**'
push:
tags-ignore:
- "v*"
branches:
- "**"
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
scala: [ 3.4.3 ]
java: [ graalvm-ce-java17@22.3.0 ]
runs-on: ${{ matrix.os }}
steps:
- 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
- name: MiMa check
if: steps.breaking-commit-message.outputs.BREAKING != 'true'
run: sbt +mimaReportBinaryIssues