-
Notifications
You must be signed in to change notification settings - Fork 18
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 perlcritic checks in CI #31
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,9 @@ jobs: | |
image: "registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86-jq" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install jq | ||
run: zypper -n in jq | ||
|
||
- name: Run isotovideo against test code | ||
run: isotovideo qemu_no_kvm=1 casedir=. | ||
run: isotovideo qemu_no_kvm=1 casedir=$(pwd) | ||
|
||
- name: fail if any test module failed | ||
run: jq .result testresults/result-*.json | grep -v ok && echo "Test modules failed" && exit 1 | ||
run: jq .result testresults/result-*.json | grep ok || (echo "Test modules failed" && exit 1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned elsewhere, you probably do not want subshell here, the exit will only exit the subshell. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously the grep was looking for any line not matching There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, thanks for commenting that. I also noticed that but forget to note down that |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- 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)' | ||
run: | | ||
docker run --rm -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 ok \ | ||
|| (echo "Test modules failed" && exit 1)' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again the subshell. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- 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: docker run --rm -v .:/tests:Z registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86 qemu_no_kvm=1 casedir=/tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand the removal of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also change the action to
actions/checkout@v4
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That change should get rid of the deprecation warning seen in https://github.com/os-autoinst/os-autoinst-distri-example/actions/runs/7831480244