-
Notifications
You must be signed in to change notification settings - Fork 47
61 lines (53 loc) · 1.8 KB
/
test-java-os-mix.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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: [ 11, 17, 21 ]
runs-on: ${{ matrix.os-version }}
steps:
- name: Check out
uses: actions/checkout@v4
- 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: |
uname -a
./gradlew --version
./gradlew info
./gradlew integrationTestOnly --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