-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.07 KB
/
pr-validation.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
name: PR Validation
on: pull_request
jobs:
scalaFmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache SBT & ivy cache
uses: actions/cache@v4
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
- name: Check formatting
run: sbt scalafmtCheckAll
test:
name: Compile and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache SBT & ivy cache
uses: actions/cache@v4
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier/v1
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}-${{ hashFiles('**/plugins.sbt') }}-${{ hashFiles('**/build.properties') }}
- name: Compile and test
run: sbt docs/mdoc +test +doc version +mimaReportBinaryIssues