Skip to content

Commit

Permalink
change CLI install to >=0.4.0 (not exactly pinning it)
Browse files Browse the repository at this point in the history
Also adding comment that `--raw-output0` doesn't work with `jq` in GHActions.
I tested it in https://github.com/giovanni-guidini/components-demo/actions/runs/6591431068/job/17910020151
The error message is `jq: Unknown option --raw-output0`
  • Loading branch information
giovanni-guidini committed Oct 20, 2023
1 parent 0f5a8d3 commit 3cbd9fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/codecov_ats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
pg-version: 14
- name: Download Codecov CLI
run: |
pip install --extra-index-url https://pypi.org/simple --no-cache-dir codecov-cli==0.4.0
pip install --extra-index-url https://pypi.org/simple --no-cache-dir codecov-cli>=0.4.0
# Creates the commit and report objects in codecov
- name: Codecov startup
run: |
Expand Down Expand Up @@ -149,6 +149,7 @@ jobs:
# The 1st value doesn't count, it's '--cov-context=test' (hence -gt 1)
if [ $length_of_tests -gt 1 ]; then
echo "Running $length_of_tests tests"
# --raw-output0 doesn't work.
jq <<< ${{ needs.coverage-ats.outputs.ATS_TESTS_TO_RUN }} 'join("\u0000")' --raw-output | tr -d '\n' | xargs -r0 echo
else
echo "No tests to run"
Expand All @@ -161,6 +162,7 @@ jobs:
# The 1st value doesn't count, it's '--cov-context=test'
if [ $length_of_tests -gt 1 ]; then
echo "Running $length_of_tests tests"
# --raw-output0 doesn't work.
jq <<< ${{ needs.coverage-ats.outputs.ATS_TESTS_TO_SKIP }} 'join("\u0000")' --raw-output | tr -d '\n' | xargs -r0 echo
else
echo "No tests to run"
Expand Down

0 comments on commit 3cbd9fb

Please sign in to comment.