-
Notifications
You must be signed in to change notification settings - Fork 160
43 lines (43 loc) · 1.43 KB
/
ci.yml
File metadata and controls
43 lines (43 loc) · 1.43 KB
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
40
41
42
43
name: CI
on:
pull_request:
push:
schedule:
- cron: '0 8 * * 0'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
include:
- java: 8
sbt_version: "1.4.9"
- java: 17
sbt_version: "2"
- java: 8
- java: 25
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: ${{matrix.java}}
distribution: zulu
- uses: sbt/setup-sbt@6bec67c98f542b9e17369bfca0ec822ac1363194 # v1.1.19
- uses: coursier/cache-action@e47d7d35a0d3a2c7f649ca5c63dfc2bbfaa002e7 # v8.0.1
- run: |
git config --global user.email "[email protected]"
git config --global user.name "example"
echo '[ui]' > "$HOME/.hgrc"
echo 'username = example <[email protected]>' >> "$HOME/.hgrc"
- run: sbt "+ scalafmtCheckAll" scalafmtSbtCheck
- run: sbt -v "set pluginCrossBuild / sbtVersion := \"${{matrix.sbt_version}}\"" test scripted
if: ${{ matrix.sbt_version != '' && matrix.sbt_version != '2' }}
- run: sbt -v test scripted
if: ${{ matrix.sbt_version == '' }}
- run: sbt -v "++ 3.x" Test/compile test scripted
if: ${{ matrix.sbt_version == '2' }}
- run: rm -rf "$HOME/.ivy2/local" || true