forked from playframework/play-ebean
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (63 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
cmd: sbt validateCode
check-binary-compatibility:
name: Binary Compatibility
uses: playframework/.github/.github/workflows/binary-check.yml@v3
check-docs:
name: Docs
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x, 3.x
cmd: cd docs && sbt ++$MATRIX_SCALA validateCode
tests:
name: Tests
needs:
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x, 3.x
cmd: >-
sbt ++$MATRIX_SCALA test
scripted-tests:
name: Scripted tests
needs:
- "check-code-style"
- "check-binary-compatibility"
- "check-docs"
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.12, 3.3.1
cmd: >-
sbt "
+publishLocal;
set plugin/scriptedLaunchOpts += \"-Dscala.version=$MATRIX_SCALA\";
show scriptedSbt;
show scriptedLaunchOpts;
plugin/scripted;
"
finish:
name: Finish
if: github.event_name == 'pull_request'
needs: # Should be last
- "tests"
- "scripted-tests"
uses: playframework/.github/.github/workflows/rtm.yml@v3