Skip to content

Commit

Permalink
Add test-asciidoctor-upstream job to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsromero committed Oct 5, 2021
1 parent 42377d3 commit bbb2654
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ jobs:
./gradlew -S -Pskip.signing assemble
unset GEM_PATH GEM_HOME JRUBY_OPTS
./gradlew -S -Pskip.signing check
- name: Upstream Build
if: matrix.os == 'ubuntu-latest' && matrix.java != '8'
run: |
unset GEM_PATH GEM_HOME JRUBY_OPTS
./ci/test-asciidoctor-upstream.sh
build-windows:
name: Build on Windows
runs-on: windows-latest
Expand All @@ -68,3 +63,30 @@ jobs:
shell: cmd
run: |
gradlew.bat -i -S check
test-asciidoctor-upstream:
name: Test Asciidoctor Upstream
needs:
- build
- build-windows
strategy:
fail-fast: false
max-parallel: 2
matrix:
java:
- '11'
- '17'
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Upstream Build
run: |
unset GEM_PATH GEM_HOME JRUBY_OPTS
./ci/test-asciidoctor-upstream.sh
2 changes: 1 addition & 1 deletion ci/test-asciidoctor-upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ mvn install -B --no-transfer-progress -Dgemspec=asciidoctor.gemspec -Djruby.vers
popd

## Test against installed gem
./gradlew -S -Pskip.signing -PasciidoctorGemVersion=$ASCIIDOCTOR_VERSION -PuseMavenLocal=true :asciidoctorj:clean :asciidoctorj:check
./gradlew -S -Pskip.signing -PasciidoctorGemVersion=$ASCIIDOCTOR_VERSION -PuseMavenLocal=true check
exit $?

0 comments on commit bbb2654

Please sign in to comment.