HTML Sanity Check Matrix Test #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HTML Sanity Check Matrix Test | |
on: | |
push: | |
paths: | |
- .github/workflows/test-java-os-mix.yml | |
workflow_dispatch: {} | |
jobs: | |
test-java-os-mix: | |
strategy: | |
matrix: | |
os-version: [ ubuntu-latest, macos-14, windows-latest ] | |
java-version: [ 8, 11, 17, 21 ] | |
exclude: | |
- os-version: macos-14 | |
java-version: 8 | |
runs-on: ${{ matrix.os-version }} | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Download (Maven) Artifacts | |
uses: dawidd6/action-download-artifact@v3 | |
with: | |
workflow: gradle-build.yml | |
name: maven-repo | |
path: build/maven-repo | |
- name: Download (CLI) Artifacts | |
uses: dawidd6/action-download-artifact@v3 | |
with: | |
workflow: gradle-build.yml | |
name: CLI | |
path: htmlSanityCheck-cli/build/install | |
- name: Make file executable | |
run: chmod +x htmlSanityCheck-cli/build/install/hsc/bin/hsc | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java-version }} | |
- name: Execute integration test (Unix) | |
if: runner.os != 'Windows' | |
run: | | |
cd integration-test/gradle-plugin | |
uname -a | |
./gradlew --version | |
./gradlew htmlSanityCheck --scan | |
- name: Execute integration test (Windows) | |
if: runner.os == 'Windows' | |
shell: pwsh | |
run: | | |
uname -a | |
cmd /c "echo off && gradlew.bat --version" | |
cmd /c "echo off && gradlew.bat info" | |
cmd /c "echo off && gradlew.bat integrationTestOnly --scan" | |
# If we ever need to debug the file system contents | |
# Get-ChildItem -Recurse -File | Format-Table Name, Length, LastWriteTime | |
# Get-ChildItem -Recurse -File ./integration-test | Format-Table Name, Length, LastWriteTime |