-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (40 loc) · 1.03 KB
/
build-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
name: Check
on:
pull_request:
push:
branches:
- main # Check branch after merge
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check-code-style:
name: Code Style # scalafmt, javafmt, headerCheck
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
cmd: sbt validateCode
tests:
name: Tests
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.12.18
add-dimensions: >-
{
"sbt": [ "1.9.0" ]
}
cmd: >-
sbt "
set scriptedSbt := \"$MATRIX_SBT\";
set scriptedLaunchOpts += \"-Dscala.version=$MATRIX_SCALA\";
show scriptedSbt;
show scriptedLaunchOpts;
scripted;
"
finish:
name: Finish
if: github.event_name == 'pull_request'
needs: # Should be last
- "tests"
uses: playframework/.github/.github/workflows/rtm.yml@v3