-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 865 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (33 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# GitHub Actions workflow for Scala project using SBT
# contains basic CI steps (compile, test, lint)
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: sbtscala/scala-sbt:eclipse-temurin-21.0.6_7_1.10.11_3.6.4
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Ivy and SBT
uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Compile
run: sbt compile
- name: Run tests
run: sbt test
- name: Run Scapegoat
run: sbt scapegoat
- name: Run Scalafmt
run: sbt scalafmtAll
- name: Run Scalafix
run: sbt scalafixAll