diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index df0cd8e..e07aeb2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,13 +1,34 @@ -name: Test +name: Continuous Integration -on: [push, pull_request] +on: + pull_request: + branches: ['**'] + push: + branches: ['**'] jobs: - openjdk13: + openjdk21: runs-on: ubuntu-latest + env: + JAVA_OPTS: "-Xmx6G -XX:+UseG1GC" + SBT_OPTS: "-Dsbt.ci=true" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 13 - - run: sbt compile + + - name: Checkout current branch + uses: actions/checkout@v3 + + - name: Setup JVM + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + cache: sbt + + - name: Compile + run: sbt compile + + - name: Test + run: sbt test + + - name: Check Formatting + run: sbt scalafmtCheckAll