Skip to content

Commit

Permalink
fixing yaml file for GH actions to correctly pack and upload logfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrlik committed Nov 6, 2023
1 parent 693d4a7 commit 5bd3912
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
branches:
- "*"
env:
jdkver_latest: 20
jdkver_latest: 21
WORKSPACE: /home/runner/workspace

jobs:
test-linux-sdk:
name: "Linux"
test-temurin-sdk:
name: "Temurin jdk"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
Expand All @@ -37,12 +38,22 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: |
export OJDK_VERSION_NUMBER=${{ matrix.jdkver }} BOOTJDK_DIR=~/bootjdk JRESDK="sdk"
run: |
export OJDK_VERSION_NUMBER=${{ matrix.jdkver || env.jdkver_latest }} BOOTJDK_DIR=~/bootjdk JRESDK="jdk"
./testHeadlessComponents.sh
test-linux-jre:
name: "Linux"
- name: Pack results
if: ${{ always() }}
run: |
tar -cf "results-jdk${{ matrix.jdkver || env.jdkver_latest }}.tar.gz" $WORKSPACE/testHeadlessComponent.log $WORKSPACE/testHeadlessComponent.jtr.xml
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
path: "results-jdk${{ matrix.jdkver || env.jdkver_latest }}.tar.gz"
continue-on-error: true

test-temurin-jre:
name: "Temurin jre"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
Expand All @@ -67,6 +78,17 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: |
export OJDK_VERSION_NUMBER=${{ matrix.jdkver }} BOOTJDK_DIR=~/bootjdk JRESDK="jre"
run: |
export OJDK_VERSION_NUMBER=${{ matrix.jdkver || env.jdkver_latest }} BOOTJDK_DIR=~/bootjdk JRESDK="jre"
./testHeadlessComponents.sh
- name: Pack results
if: ${{ always() }}
run: |
tar -cf "results-jre${{ matrix.jdkver || env.jdkver_latest }}.tar.gz" $WORKSPACE/testHeadlessComponent.log $WORKSPACE/testHeadlessComponent.jtr.xml
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
path: "results-jre${{ matrix.jdkver || env.jdkver_latest }}.tar.gz"
continue-on-error: true

0 comments on commit 5bd3912

Please sign in to comment.