-
-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (36 loc) · 858 Bytes
/
ci.yml
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
37
38
39
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ["ubuntu-22.04", "windows-2022", "macos-12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: Mount caches
uses: actions/cache@v4
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Compile and test
run: |
sbt "+ test"
shell: bash
- name: Format check
if: ${{ runner.os == 'Linux' }}
run: |
sbt scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
# Single final job for mergify.
ci-passed:
runs-on: ubuntu-latest
needs: build
steps:
- run: ':'