Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug: status-check behavior

Aperta
#155 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
github-actions, typescript
Ambito
ci-cd, testing

Direzione di ricerca

Inizia riproducendo il passaggio del workflow di GitHub Actions con status-check abilitato e la configurazione mostrata, quindi confronta il risultato di status-check per i test non riusciti e quelli riusciti. L’issue è risolta quando il comportamento è spiegato e status-check e i controlli precedenti raggiungono gli stati finali previsti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, I'm facing an interesting behaviour using the status-check option. Maybe I didn't really understand its purpose, but afterwards is my configuration:

...
      - name: Publish test report
        uses: ctrf-io/github-test-reporter@v1
        if: always()
        with:
          report-path: "gen/tmp/unittests-*.xml"
          summary-report: true
          insights-report: true
          pull-request-report: true
          status-check: true
          status-check-name: 'Julians Check'
          comment-tag: '${{ github.workflow }}-${{ github.job }}'
          write-ctrf-to-file: ${{ env.CTRF_PROCESSED_REPORT }}
          title: 'Test Report'
          integrations-config: |
            {
              "junit-to-ctrf": {
                "enabled": true,
                "action": "convert",
                "options": {
                  "output": "${{ env.CTRF_REPORT_FILE }}",
                  "toolname": "junit-to-ctrf",
                  "useSuiteName": false,
                  "env": {
                    "appName": "..."
                  }
                }
              }
            }
        env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Problem: Using this step configured as above, the following behaviour occurs during a test run with...

  • test errors: The status check appears as "failed" in my PR validation and the other two checks (which run before this one) I'm running reset from "Successful" to "Expected" state.
  • test success: The status check appears as "Expected" in the PR validation and does not update.

Is the described behaviour expected? Or did I misconfigured the step?

Lingua principale
TypeScript
Stelle
378
Fork
43
Merge medio
3g 11h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ctrf-io/github-test-reporter

Tutte le issue di ctrf-io/github-test-reporter

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.