handle a few 'edge cases' for index lookups #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 |