-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (35 loc) · 1.17 KB
/
tests.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
name: DS3 Java SDK Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-deps:
name: Compile main and test classes with fresh dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
check-latest: true
- run: ./gradlew clean classes testClasses integrationTestClasses --refresh-dependencies
test:
name: Test with multiple Temurin JDK versions
strategy:
matrix:
test-jdk-version: [ 8, 11, 17 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
name: Setup Temurin JDK ${{ matrix.test-jdk-version }}
with:
distribution: 'temurin'
java-version: ${{ matrix.test-jdk-version }}
cache: 'gradle'
check-latest: true
- name: Compile and assemble main project with Temurin JDK ${{ matrix.test-jdk-version }}
run: ./gradlew clean assemble
- name: Test with Temurin JDK ${{ matrix.test-jdk-version }}
run: ./gradlew -S test${{ matrix.test-jdk-version }}