Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed GitHub workflow report for failed tests #2653

Merged
merged 10 commits into from
Oct 18, 2024
Merged
14 changes: 13 additions & 1 deletion .github/workflows/report-test-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
steps:
# Cleanup Old Files
- name: Cleanup Old Files
run: rm -rf $GITHUB_WORKSPACE/*.trx

# Download the Latest Artifacts with Unique Name
- name: Download Artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}

# Display the Structure of Downloaded Files
- name: Display structure of downloaded files
run: ls -R

# Display the Contents of .trx Files
- name: Display .trx file contents
run: cat **/*.trx || echo "No .trx files found"

- name: Report tests results
uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38
with:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ jobs:
run: Set-MpPreference -DisableRealtimeMonitoring $true
shell: powershell
- uses: actions/checkout@v4
# Build and Test
- name: Run task 'build'
shell: cmd
run: ./build.cmd build
- name: Run task 'in-tests-core'
shell: cmd
run: ./build.cmd in-tests-core -e
# Upload Artifacts with Unique Name
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-windows-core-trx
name: test-windows-core-trx-${{ github.run_id }}
path: "**/*.trx"

test-windows-full:
Expand All @@ -38,23 +40,26 @@ jobs:
run: Set-MpPreference -DisableRealtimeMonitoring $true
shell: powershell
- uses: actions/checkout@v4
# Build and Test
- name: Run task 'build'
shell: cmd
run: ./build.cmd build
- name: Run task 'in-tests-full'
shell: cmd
run: ./build.cmd in-tests-full -e
# Upload Artifacts with Unique Name
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-windows-full-trx
name: test-windows-full-trx-${{ github.run_id }}
path: "**/*.trx"

test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Set up the environment
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
Expand All @@ -70,17 +75,19 @@ jobs:
run: npm install jsvu -g && jsvu --os=linux64 --engines=v8 && echo "$HOME/.jsvu/bin" >> $GITHUB_PATH
- name: Install wasm-tools workload
run: ./build.cmd install-wasm-tools
# Build and Test
- name: Run task 'build'
run: ./build.cmd build
- name: Run task 'unit-tests'
run: ./build.cmd unit-tests -e
- name: Run task 'in-tests-core'
run: ./build.cmd in-tests-core -e
# Upload Artifacts with Unique Name
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-linux-trx
name: test-linux-trx-${{ github.run_id }}
path: "**/*.trx"

test-macos:
Expand All @@ -95,17 +102,19 @@ jobs:
run: npm install jsvu -g && jsvu --os=mac64 --engines=v8 && echo "$HOME/.jsvu/bin" >> $GITHUB_PATH
- name: Install wasm-tools workload
run: ./build.cmd install-wasm-tools
# Build and Test
- name: Run task 'build'
run: ./build.cmd build
- name: Run task 'unit-tests'
run: ./build.cmd unit-tests -e
- name: Run task 'in-tests-core'
run: ./build.cmd in-tests-core -e
# Upload Artifacts with Unique Name
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-macos-trx
name: test-macos-trx-${{ github.run_id }}
path: "**/*.trx"

test-pack:
Expand Down
Loading