diff --git a/.github/workflows/isotovideo-check-all-test-modules.yml b/.github/workflows/isotovideo-check-all-test-modules.yml index ee4ab09..fec9b37 100644 --- a/.github/workflows/isotovideo-check-all-test-modules.yml +++ b/.github/workflows/isotovideo-check-all-test-modules.yml @@ -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' diff --git a/.github/workflows/isotovideo.yml b/.github/workflows/isotovideo.yml index a08209b..4ba0cf2 100644 --- a/.github/workflows/isotovideo.yml +++ b/.github/workflows/isotovideo.yml @@ -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 diff --git a/.github/workflows/openqa.yml b/.github/workflows/openqa.yml index b450a1a..07f0d1f 100644 --- a/.github/workflows/openqa.yml +++ b/.github/workflows/openqa.yml @@ -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: diff --git a/.github/workflows/yaml-checks.yml b/.github/workflows/yaml-checks.yml new file mode 100644 index 0000000..553b929 --- /dev/null +++ b/.github/workflows/yaml-checks.yml @@ -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 . diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.yamlignore b/.yamlignore new file mode 120000 index 0000000..b509915 --- /dev/null +++ b/.yamlignore @@ -0,0 +1 @@ +external/os-autoinst-common/.yamlignore \ No newline at end of file diff --git a/.yamllint b/.yamllint new file mode 120000 index 0000000..dece13a --- /dev/null +++ b/.yamllint @@ -0,0 +1 @@ +external/os-autoinst-common/.yamllint \ No newline at end of file diff --git a/scenario-definitions.yaml b/scenario-definitions.yaml index 23ae69b..95228f4 100644 --- a/scenario-definitions.yaml +++ b/scenario-definitions.yaml @@ -1,3 +1,4 @@ +--- products: example: distri: "example"