-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (57 loc) · 1.57 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
name: Check
on:
pull_request: # Check Pull Requests
push:
branches:
- master # 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:
# Run Gradle Wrapper Validation to verify the wrapper's checksum
gradle-validation:
name: Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# we don't know what commit the last tag was
fetch-depth: 0
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
check:
name: Check for Scala ${{ matrix.scala }}
runs-on: ubuntu-latest
needs: gradle-validation
strategy:
matrix:
include:
- scala: "2.11"
lagom: "1.4.15"
- scala: "2.12"
lagom: "1.5.5"
- scala: "2.13"
lagom: "1.6.4"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# we don't know what commit the last tag was
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: '8'
check-latest: true
cache: 'gradle'
- name: Check
run: >-
./gradlew --no-daemon clean check
-PscalaBinaryVersion=${{ matrix.scala }} -PlagomVersion=${{ matrix.lagom }}
finish:
name: Finish
needs: # Should be last
- "check"
uses: taymyr/.github/.github/workflows/rtm.yml@v1