1111 - docs/**
1212
1313jobs :
14- check :
15- runs-on : ubuntu-latest
16- steps :
17- - uses : actions/checkout@v4
18- - uses : actions/setup-java@v4
19- with :
20- java-version : 21
21- distribution : zulu
22- - uses : gradle/gradle-build-action@v2
23- with :
24- gradle-home-cache-cleanup : true
25- - name : Licensing and other lightweight checks
26- run : ./gradlew --console=plain license validateAntora validatePlugins
27- - name : Coding style
28- run : ./gradlew --console=plain -i codenarcAll
29- # build-windows:
30- # runs-on: windows-latest
14+ # check:
15+ # runs-on: ubuntu-latest
3116# steps:
3217# - uses: actions/checkout@v4
3318# - uses: actions/setup-java@v4
@@ -37,55 +22,70 @@ jobs:
3722# - uses: gradle/gradle-build-action@v2
3823# with:
3924# gradle-home-cache-cleanup: true
40- # - name: Cache offline repository
41- # uses: actions/cache@v3
42- # with:
43- # path: .offline-repo
44- # key: ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
45- # restore-keys: ${{ runner.os }}-offline-repo-
46- # - name: Build offline repository
47- # run: ./gradlew --console=plain --no-build-cache syncRemoteRepositories
48- # - name: Build
49- # run: ./gradlew --console=plain --warning-mode=all clean assemble
50- # - name: Test
51- # run: ./gradlew --console=plain --warning-mode=all -i check --no-parallel -x gradleTest -x :asciidoctor-gradle-jvm-gems:integrationTest
52- # env:
53- # JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
54- # # Stop gradlew to avoid locking issues
55- # - name: Cleanup
56- # run: ./gradlew --stop
57- build :
58- strategy :
59- matrix :
60- os : [ubuntu-latest]
61- java : [ 21 ]
62- # os: [ubuntu-latest, macos-latest]
63- # java: [ 8, 11 ]
64- runs-on : ${{ matrix.os }}
25+ # - name: Licensing and other lightweight checks
26+ # run: ./gradlew --console=plain license validateAntora validatePlugins
27+ # - name: Coding style
28+ # run: ./gradlew --console=plain -i codenarcAll
29+ build-windows :
30+ runs-on : windows-latest
6531 steps :
66- - uses : actions/checkout@v4
67- - uses : actions/setup-java@v4
68- with :
69- java-version : ${{ matrix.java }}
70- distribution : zulu
71- - uses : gradle/gradle-build-action@v2
72- with :
73- gradle-home-cache-cleanup : true
74- - name : Cache offline repository
75- uses : actions/cache@v3
76- with :
77- path : .offline-repo
78- key : ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
79- restore-keys : ${{ runner.os }}-offline-repo-
80- - name : Build offline repository
81- run : ./gradlew --console=plain --no-build-cache syncRemoteRepositories
82- - name : Build
83- run : ./gradlew -i -s --console=plain --no-build-cache assemble
84- - name : Integration tests
85- run : ./gradlew -i --console=plain --no-parallel --no-build-cache test integrationTest -x :asciidoctor-gradle-jvm-gems:intTest
86- - name : Classic GEM plugin integration test
87- run : ./gradlew -i --console=plain --no-build-cache :asciidoctor-gradle-jvm-gems:intTest
88- - name : Remote tests for classic plugins
89- run : ./gradlew -i --console=plain --no-build-cache remoteTest
90- - name : Gradle tests
91- run : ./gradlew -i --console=plain --no-parallel --no-build-cache gradleTest configCacheGradleTest jdk17GradleTest jdk21GradleTest
32+ - uses : actions/checkout@v4
33+ - uses : actions/setup-java@v4
34+ with :
35+ java-version : 21
36+ distribution : zulu
37+ - uses : gradle/gradle-build-action@v2
38+ with :
39+ gradle-home-cache-cleanup : true
40+ - name : Cache offline repository
41+ uses : actions/cache@v3
42+ with :
43+ path : .offline-repo
44+ key : ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
45+ restore-keys : ${{ runner.os }}-offline-repo-
46+ - name : Build offline repository
47+ run : ./gradlew --console=plain --no-build-cache syncRemoteRepositories
48+ - name : Build
49+ run : ./gradlew --console=plain --warning-mode=all clean assemble
50+ - name : Test
51+ run : ./gradlew --console=plain --warning-mode=all -i check --no-parallel -x gradleTest -x :asciidoctor-gradle-jvm-gems:integrationTest
52+ env :
53+ JAVA_TOOL_OPTIONS : -Djava.net.preferIPv4Stack=true
54+ # Stop gradlew to avoid locking issues
55+ - name : Cleanup
56+ run : ./gradlew --stop
57+ # build:
58+ # strategy:
59+ # matrix:
60+ # os: [ubuntu-latest]
61+ # java: [ 21 ]
62+ # # os: [ubuntu-latest, macos-latest]
63+ # # java: [ 8, 11 ]
64+ # runs-on: ${{ matrix.os }}
65+ # steps:
66+ # - uses: actions/checkout@v4
67+ # - uses: actions/setup-java@v4
68+ # with:
69+ # java-version: ${{ matrix.java }}
70+ # distribution: zulu
71+ # - uses: gradle/gradle-build-action@v2
72+ # with:
73+ # gradle-home-cache-cleanup: true
74+ # - name: Cache offline repository
75+ # uses: actions/cache@v3
76+ # with:
77+ # path: .offline-repo
78+ # key: ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
79+ # restore-keys: ${{ runner.os }}-offline-repo-
80+ # - name: Build offline repository
81+ # run: ./gradlew --console=plain --no-build-cache syncRemoteRepositories
82+ # - name: Build
83+ # run: ./gradlew -i -s --console=plain --no-build-cache assemble
84+ # - name: Integration tests
85+ # run: ./gradlew -i --console=plain --no-parallel --no-build-cache test integrationTest -x :asciidoctor-gradle-jvm-gems:intTest
86+ # - name: Classic GEM plugin integration test
87+ # run: ./gradlew -i --console=plain --no-build-cache :asciidoctor-gradle-jvm-gems:intTest
88+ # - name: Remote tests for classic plugins
89+ # run: ./gradlew -i --console=plain --no-build-cache remoteTest
90+ # - name: Gradle tests
91+ # run: ./gradlew -i --console=plain --no-parallel --no-build-cache gradleTest configCacheGradleTest jdk17GradleTest jdk21GradleTest
0 commit comments