8000 Update yq commands to use 4.x UI by per1234 · Pull Request #3 · arduino/cpp-test-action · GitHub
[go: up one dir, main page]

Skip to content

Update yq commands to use 4.x UI #3

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 < 8000 a class="Link--inTextBlock" href="https://docs.github.com/terms" target="_blank">terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ runs:
run: |
sudo snap install yq > /dev/null

- name: Update APT package lists
shell: bash
run: |
sudo apt-get update > /dev/null

- name: Install Valgrind
shell: bash
run: |
Expand All @@ -54,7 +59,7 @@ runs:
run: |
if [[ -n "${{ inputs.runtime-path }}" ]]; then
echo "::warning::The runtime-path input is deprecated. Please use runtime-paths instead."
RUNTIME_PATHS="${{ inputs.runtime-path }}"
RUNTIME_PATHS="- ${{ inputs.runtime-path }}"
else
RUNTIME_PATHS="${{ inputs.runtime-paths }}"
fi
Expand All @@ -68,7 +73,7 @@ runs:
echo "::error file=$runtimePath::While running $runtimePath"
fi
echo "::endgroup::"
done <<<"$(echo "$RUNTIME_PATHS" | yq read - [*])"
done <<<"$(echo "$RUNTIME_PATHS" | yq eval '.[]' -)"
exit $EXIT_STATUS

- name: Parse coverage-exclude-paths input
Expand All @@ -77,7 +82,7 @@ runs:
run: |
while IFS='' read -r excludePath && [[ -n "$excludePath" ]]; do
excludePaths="$excludePaths $excludePath"
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq read - [*])"
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq eval '.[]' -)"
# Make the parsed paths an output so it can be used by the next step
echo "::set-output name=paths::$excludePaths"

Expand Down
0