-
Notifications
You must be signed in to change notification settings - Fork 34
35 lines (35 loc) · 1.01 KB
/
pr-checks.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
name: PR checks
on:
pull_request:
jobs:
test:
name: Test using JDK ${{matrix.java}} and sbt ${{matrix.sbt}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8]
sbt:
- 1.8.3
- 0.13.18
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v14
with:
java-version: adopt@1.${{matrix.java}}
- uses: actions/cache@v3
with:
path: ~/.ivy2/cache
key: ivy-${{hashFiles('**/*.sbt')}}-${{matrix.sbt}}
restore-keys: ivy-
- uses: actions/cache@v3
with:
path: ~/.sbt
key: sbt-${{hashFiles('**/*.sbt')}}-${{hashFiles('project/build.properties')}}-${{matrix.sbt}}
restore-keys: sbt-
# Full regression on sbt 1+
- run: sbt "^^${{matrix.sbt}}; test; scripted"
if: ${{ matrix.sbt != '0.13.18' }}
# Basic testing for 0.13.x only
- run: sbt "^^${{matrix.sbt}}; test"
if: ${{ matrix.sbt == '0.13.18' }}