Skip to content

Commit

Permalink
updating test results in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Mar 5, 2024
1 parent 1844509 commit 6935838
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,18 @@ jobs:
strategy:
fail-fast: false
matrix:
commandbox_version: [ "5.9.0" ]
commandbox_version: [ "6.0.0" ]
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021", "adobe@2023" ]
jdkVersion: [ "11" ]
experimental: [false]
include:
- cfengine: "lucee@6"
commandbox_version: "6.0.0-alpha"
jdkVersion: "11"
experimental: true
- cfengine: "lucee@6"
commandbox_version: "6.0.0-alpha"
jdkVersion: "17"
experimental: true
- cfengine: "adobe@2023"
commandbox_version: "5.9.0"
jdkVersion: "17"
experimental: false
steps:
Expand Down Expand Up @@ -87,18 +84,11 @@ jobs:
- name: Set cfengine version env
run: echo "CFENGINE_VERSION=$(box echo ${serverInfo.engineName@coldbox-${{ matrix.cfengine }}}@${serverInfo.engineVersion@coldbox-${{ matrix.cfengine }}})" >> $GITHUB_ENV

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: tests/results/**/*.xml
check_name: "${{ env.CFENGINE_VERSION }} Test Results"

- name: Upload Test Results Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: coldbox-test-results-${{ matrix.cfengine }}
name: Test Results Engine ${{ matrix.cfengine }} JDK ${{ matrix.jdkVersion }}
path: |
tests/results/**/*
Expand All @@ -115,7 +105,7 @@ jobs:
SLACK_USERNAME: CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

- name: Failure Debugging Info
- name: Output Failure Debugging Info
if: ${{ failure() }}
run: |
box version
Expand All @@ -126,7 +116,24 @@ jobs:
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: Failure Debugging Info - ${{ matrix.cfengine }}
name: Failure Debugging Info - ${{ matrix.cfengine }} - ${{ matrix.jdkVersion }}
path: |
.engine/**/logs/*
.engine/**/WEB-INF/cfusion/logs/*
# Publish the test results
publish-test-results:
name: Publish Test Results
needs: tests
runs-on: ubuntu-latest
if: always()
steps:
- name: Download Test Results Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: artifacts/**/*.xml

0 comments on commit 6935838

Please sign in to comment.