[CI] Linting optimisations (#940)

* [CI] Lint all builds except tagged commits to satisfy branch protection

* [CI] Add automatic retries for linting failures
This is to treat any issues with the reviewdog API server and occasional failures we are seeing.
pull/868/head^2
Amir Zarrinkafsh 2020-04-29 12:30:46 +10:00 committed by GitHub
parent f8bd506326
commit 12100d21e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ env:
steps: steps:
- label: ":service_dog: Linting" - label: ":service_dog: Linting"
command: "reviewdog -reporter=github-check" command: "reviewdog -reporter=github-check"
if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" retry:
automatic: true
if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/
- label: ":hammer_and_wrench: Unit Test" - label: ":hammer_and_wrench: Unit Test"
command: "authelia-scripts --log-level debug ci" command: "authelia-scripts --log-level debug ci"