ID-728 Add sam lookup to support azure user notifications. #210
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: Unit tests | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Compile and check scalafmt | |
env: | |
JAVA_OPTS: -Xmx4G -Xms4G -Xss2M | |
JVM_OPTS: -Xmx4G -Xms4G -Xss2M | |
run: sbt -Denv.type=test clean "test:compile" scalafmtCheckAll | |
- name: Run tests | |
env: | |
JAVA_OPTS: -Xmx4G -Xms4G -Xss2M | |
JVM_OPTS: -Xmx4G -Xms4G -Xss2M | |
run: | | |
export SBT_OPTS="-Duser.timezone=UTC -Denv.type=test" | |
sbt coverage test coverageReport | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Setup Cache | |
uses: coursier/cache-action@v5 | |
- name: Cache resources | |
run: | | |
rm -rf "$HOME/.ivy2/local" || true | |
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | |
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | |
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | |
find $HOME/.sbt -name "*.lock" -delete || true |