Use docker containers in github actions, should be more reliable

dev/0.11
modmuss50 2020-07-27 00:09:42 +01:00
parent db1fe88fcc
commit 9d142efb01
1 changed files with 17 additions and 21 deletions

View File

@ -4,28 +4,24 @@ jobs:
gradle: gradle:
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04, windows-latest] gradle: [4.9, 4.10.2, 6.5.1]
gradle-version: [4.9, 4.10.2, 6.5, 6.6-rc-1] java: [jdk8, jdk11, jdk14]
java-version: [1.8, 11, 14]
exclude: # Dont run older gradle versions on newer java exclude: # Dont run older gradle versions on newer java
- java-version: 14 - java: jdk14
gradle-version: 4.9 gradle: 4.9
- java-version: 14 - java: jdk14
gradle-version: 4.10.2 gradle: 4.10.2
- java-version: 14 - java: jdk14
gradle-version: 5.6.4 gradle: 5.6.4
- java-version: 11 - java: jdk11
gradle-version: 4.9 gradle: 4.9
- java-version: 11 - java: jdk11
gradle-version: 4.10.2 gradle: 4.10.2
runs-on: ${{ matrix.os }} runs-on: ubuntu-20.04
container:
image: gradle:${{ matrix.gradle }}-${{ matrix.java }}
options: --user root
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1 - uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v1 - run: gradle build check test --stacktrace
with:
java-version: ${{ matrix.java-version }}
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: ${{ matrix.gradle-version }}
arguments: build check test --stacktrace