Reply To: Is there a built-in way in OSVVM to detect build failure without parsing logs?

Why OSVVM™? Forums OSVVM Is there a built-in way in OSVVM to detect build failure without parsing logs? Reply To: Is there a built-in way in OSVVM to detect build failure without parsing logs?

#2875
Amine, Adel
Member

Hi Jim,

Thanks for the information!

I’ve actually switched to using the built-in JUnit GitHub Action for test reporting. In this setup, I simply specify the location of the XML report files, and the action handles the rest.

Here is the current method I’m using:


# Setup OSVVM and launch simulation
- name: Run Simulation
  run: |
    cd $GITHUB_WORKSPACE/sim/
    vsim -c -do 'set OSVVM_DIR $env(HOME)/OsvvmLibraries; source $OSVVM_DIR/Scripts/StartUp.tcl; build $OSVVM_DIR; build build.pro; build RunAllTests.pro; quit -code 0 -f'

- name: Publish Tests Report
  uses: mikepenz/action-junit-report@v5
  if: success() || failure() # Always run even if the previous step fails
  with:
    report_paths: sim/sim_RunAllTests/sim_RunAllTests.xml
    token: ${{ secrets.GITHUB_TOKEN }}
    check_annotations: true
    check_name: OSVVM Tests Report
    include_passed: true

Best regards,
Amine