GoogleChrome/lighthouse-ci

Report GitHub check status differently when highest failing assert is a warning

Open

#375 ouverte le 8 juil. 2020

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (658 forks)batch import
P3enhancementgood first issue

Métriques du dépôt

Stars
 (5 965 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

I've currently set a assert profile like this:

module.exports = {
  ci: {
    ...
    assert: {
      ...
      assertions: {
        "categories:performance": "warn",
        "categories:best-practices": "warn",
        "categories:seo": "warn",
        "uses-long-cache-ttl": "off",
        "uses-http2": "off"
      }
    }
  }
}

What I get on github is this:

The message is fine, but having a success conclusion makes the checks panel to auto-collapse, so users won't be attracted to it at all. Maybe we should use neutral or find another way to improve that, but without failing the check?

Guide contributeur