Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable yaml checks in CI #39

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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