Commit 59c04c76 authored by nimrod's avatar nimrod
Browse files

Better testing.

- ci-fairy pre-commit check.
- Correctly show failing ci-fairy test.
parent e4568bbd
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -12,4 +12,11 @@ ci-fairy:
    - apk add --update git
    - pip install git+https://gitlab.freedesktop.org/freedesktop/ci-templates
  script:
    - ls templates/* | xargs -tn1 ci-fairy lint --filename
    - |
      code='0'
      for template in templates/*.yml
      do
        echo "Checking $template" >&2
        ci-fairy lint --filename "$template" || code='1'
      done
      exit "$code"
+5 −0
Original line number Diff line number Diff line
@@ -27,3 +27,8 @@ repos:
    rev: 0.5.3
    hooks:
      - id: mdformat

  - repo: https://gitlab.freedesktop.org/nimrod/ci-templates.git
    rev: fd4100029a3d54e5184408313ca602f691f359b6
    hooks:
      - id: ci-fairy