Skip to content

Commit

Permalink
Enable yaml checks in CI
Browse files Browse the repository at this point in the history
Signed-off-by: ybonatakis <ybonatakis@suse.com>
  • Loading branch information
b10n1k committed Feb 12, 2024
1 parent 10683a4 commit 710cdd7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/isotovideo-check-all-test-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
# which can be fixed with a more recent version of Ubuntu explicitly
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run isotovideo against test code, fail if any test module failed
run: podman run --rm -it -v .:/tests:Z --entrypoint '' registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86-jq /bin/sh -c 'isotovideo qemu_no_kvm=1 casedir=/tests && jq .result testresults/result-*.json | grep -v ok && echo "Test modules failed" && exit 1'
run: podman run --rm -it -v .:/tests:Z --entrypoint '' registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86-jq /bin/sh -c 'isotovideo --exit-status-from-test-results qemu_no_kvm=1 casedir=/tests'

Check failure on line 16 in .github/workflows/isotovideo-check-all-test-modules.yml

View workflow job for this annotation

GitHub Actions / yamllint

16:161 [line-length] line too long (216 > 160 characters)
14 changes: 14 additions & 0 deletions .github/workflows/yaml-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: yamllint
on: [push, pull_request]

jobs:
yamllint:
runs-on: ubuntu-latest
container:
image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev
steps:
- uses: actions/checkout@v4
- name: Validate yamls
run: |
yamllint --strict .
Empty file added .gitignore
Empty file.
Empty file added .yamlignore
Empty file.
1 change: 1 addition & 0 deletions .yamllint

0 comments on commit 710cdd7

Please sign in to comment.