Skip to content

Feat: Support Windows agents #181

@Cheesebaron

Description

@Cheesebaron

I am trying to use this action but having issues with files not being found when using a pattern such as ${{ github.workspace }}\output\Tests\*.ctrf.json

My workflow looks like this:

    - name: Build
      run: dotnet run --project build/Build.csproj -- --verbosity=Minimal --artifactsDir="${{ github.workspace }}\output"

    - name: Print ctrf files in output
      run: |
        echo "ctrf files in output:"
        dir ${{ github.workspace }}\output\Tests\*.ctrf.json
    
    - name: Publish Test Report
      uses: ctrf-io/github-test-reporter@073c73100796cafcbfdc4722c7fa11c29730439e #v1.0.18
      with:
        report-path: ${{ github.workspace }}\output\Tests\*.ctrf.json
        summary-report: true
        github-report: true
        pull-request: true
        update-comment: true
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      if: always()

The dotnet run step produces files in ${{ github.workspace}}\output\Tests and I've verified that they are there by printing the folder in the run but also uploading as artifacts and they are there with contents.

You can see it in action here: MvvmCross/MvvmCross#4918

And a run here: https://github.com/MvvmCross/MvvmCross/actions/runs/16369990918/job/46255845563#step:9:58

It looks like this:

Image

I've tried report-path set to:

  • ${{ github.workspace }}\output\**\*.ctrf.json
  • ${{ github.workspace }}\output\Tests\*.ctrf.json
  • output\Tests\*.ctrf.json

Nothing seems to be working. This is running on Windows as I have Windows specific targets, so I can't easily test on Linux or macOS agents.

What am I doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions