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 8628865 commit da70f49
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 6 deletions.
7 changes: 5 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,9 @@ 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'
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
4 changes: 2 additions & 2 deletions .github/workflows/openqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ env:
OPENQA_HOST: ${{ secrets.OPENQA_URL }}
OPENQA_API_KEY: ${{ secrets.OPENQA_API_KEY }}
OPENQA_API_SECRET: ${{ secrets.OPENQA_API_SECRET }}
GH_REPO: ${github.event.pull_request.head.repo.full_name}}
GH_REF: ${{github.event.pull_request.head.ref}}
GH_REPO: ${{ github.event.pull_request.head.repo.full_name }}
GH_REF: ${{ github.event.pull_request.head.ref }}

jobs:
trigger_and_monitor_openqa:
Expand Down
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.
1 change: 1 addition & 0 deletions .yamlignore
1 change: 1 addition & 0 deletions .yamllint
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 da70f49

Please sign in to comment.