clippy-action icon indicating copy to clipboard operation
clippy-action copied to clipboard

github-check reporter shows clippy as step under random job

Open wmmc88 opened this issue 1 year ago • 0 comments

When using github-check reporter, a PR's checks tab will show clippy-action's check under a random job.

 - name: Run Cargo Clippy
        uses: giraffate/clippy-action@v1
        with:
          tool_name: Clippy
          clippy_flags: --locked --profile ${{ matrix.cargo_profile }} --all-targets -- -D warnings
          reporter: ${{ github.event_name == 'pull_request' && 'github-pr-review' || 'github-check' }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          filter_mode: nofilter
          fail_on_error: true

When run with the above config (and triggered by a push), the resulting check will show up under a random job (i think its the first job to start). Example: image

The above clippy check(triggered by push) is a step in the Lint job, but in the Checks tab of the PR, it shows under the Test Job (on other executions, it shows under different Jobs).

wmmc88 avatar Oct 08 '23 22:10 wmmc88