-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (61 loc) · 1.69 KB
/
build-and-test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
jobs:
build:
name: Build
needs:
- checks
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2"
with:
submodules: 'true'
- name: "~/.sbt\n\"~/.cache/coursier\"\n cache"
uses: "actions/cache@v3"
with:
key: "${{ runner.os }}-sbt-${{ hashFiles('build.sbt', 'project/plugins.sbt', 'project/build.properties') }}"
path: |
~/.sbt
"~/.cache/coursier"
restore-keys: |
${{ runner.os }}-sbt
- name: "java ${{ matrix.java}} setup"
uses: "actions/setup-java@v1.4.3"
with:
architecture: x64
java-package: jdk
java-version: "${{ matrix.java}}"
- run: "bash run_sbt.sh -DJDK_VERSION=${{ matrix.java}} \"++${{ matrix.scala}} test\""
strategy:
matrix:
java:
- '17.0.9'
scala:
- '2.13.13'
- '3.3.3'
- '3.4.0'
checks:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2"
with:
submodules: 'true'
- name: "~/.sbt\n\"~/.cache/coursier\"\n cache"
uses: "actions/cache@v3"
with:
key: "${{ runner.os }}-sbt-${{ hashFiles('build.sbt', 'project/plugins.sbt', 'project/build.properties') }}"
path: |
~/.sbt
"~/.cache/coursier"
restore-keys: |
${{ runner.os }}-sbt
- name: java 17 setup
uses: "actions/setup-java@v1.4.3"
with:
architecture: x64
java-package: jdk
java-version: '17'
- run: sbt scalafmtCheckAll scalafmtSbtCheck
name: build_and_test
on:
pull_request: {}
push: {}