Skip to content

Update erules-core to 0.1.1 (#3) #14

Update erules-core to 0.1.1 (#3)

Update erules-core to 0.1.1 (#3) #14

Workflow file for this run

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