forked from scalatra/scalamd
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 843 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
name: CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- java: 8
os: windows-latest
- java: 8
os: ubuntu-latest
- java: 21
os: ubuntu-latest
steps:
- run: "git config --global core.autocrlf false"
shell: bash
- uses: actions/checkout@v4
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: ${{matrix.java}}
distribution: adopt
- uses: coursier/cache-action@v6
- uses: sbt/setup-sbt@v1
- shell: bash
run: sbt
-v
"+compile"
"+test"
- shell: bash
name: check scalariform
run: git diff --exit-code