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 <[email protected]>
  • Loading branch information
b10n1k committed Feb 13, 2024
1 parent 0376961 commit b271d57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/isotovideo-check-all-test-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ 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
env:
image: registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86-jq
isotovideo: isotovideo qemu_no_kvm=1 casedir=/tests
jq_filter: jq .result testresults/result-*.json
err_msg: Test modules failed
run: docker run --rm -it -v .:/tests:Z --entrypoint '' $image /bin/sh -c '$isotovideo && $jq_filter | grep ok || (echo "$err_msg" && exit 1)'
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'
7 changes: 5 additions & 2 deletions .github/workflows/isotovideo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run isotovideo against test code in happy-path scenario
run: podman run --rm -it -v .:/tests:Z registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86 qemu_no_kvm=1 casedir=/tests
run: |
podman run --rm -it -v .:/tests:Z \
registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86 \
--exit-status-from-test-results qemu_no_kvm=1 casedir=/tests
3 changes: 1 addition & 2 deletions .github/workflows/yaml-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ jobs:
- uses: actions/checkout@v4
- name: Validate yamls
run: |
git config --global --add safe.directory '*'
yamllint --strict $(git ls-files "*.yml" "*.yaml" 2> /dev/null || find . -name '*.y*ml')
yamllint --strict .
1 change: 1 addition & 0 deletions scenario-definitions.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
products:
example:
distri: "example"
Expand Down

0 comments on commit b271d57

Please sign in to comment.