🎨 Code cleanup and fixed application.conf #22
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: Scala CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
concurrency: | |
group: scala-ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
# Caching dependencies for faster build | |
- name: Cache SBT | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
~/.coursier | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
restore-keys: | | |
${{ runner.os }}-sbt- | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: "zulu" | |
- name: Check Scala formatting with Scalafmt | |
run: sbt scalafmtCheckAll | |
- name: Check import organization | |
run: sbt "scalafix --check OrganizeImports" | |
- name: Compile with SBT | |
run: sbt compile |