-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (29 loc) · 928 Bytes
/
pr.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
name: PR
on: pull_request
jobs:
pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 19
- uses: actions/cache@v2
with:
path: |
~/.sbt
~/.coursier
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
- name: scalafmtCheck and tests
#fixme reenable once sbt scalafmt is compatible again with sbt scalafmtCheck
#run: sbt scalafmtCheck Test/scalafmtCheck test
- name: Generate domain classes and verify everything is committed
run: |
./generateDomainClasses.sh
UNTRACKED_FILES=$(git status --porcelain 2>/dev/null| grep "^??" | wc -l)
echo $UNTRACKED_FILES untracked files
exit $UNTRACKED_FILES