Delete duplicated pfcon.valueOrLookupOrRandom #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
jobs: | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Discover tests | |
id: find | |
run: | | |
test_dirs="$(find -mindepth 3 -maxdepth 3 -type d -name tests)" | |
if [ -z "$test_dirs" ]; then | |
echo "::error ::No test directories found." | |
exit 1 | |
fi | |
chart_dirs="$(echo "$test_dirs" | xargs dirname | tr '[:space:]' ',' | sed 's/,*$//')" | |
echo "chart_dirs=$chart_dirs" >> "$GITHUB_OUTPUT" | |
- name: Update Helm dependencies | |
run: | | |
printf '%s' '${{ steps.find.outputs.chart_dirs }}' \ | |
| xargs -d , -L 1 helm dependency update \ | |
2> >(grep -v 'found symbolic link' >&2) | |
- name: Install helm-unittest | |
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v0.6.3 | |
- name: Run unit tests | |
run: | | |
printf '%s' '${{ steps.find.outputs.chart_dirs }}' \ | |
| xargs -d , -L 1 helm unittest --color \ | |
2> >(grep -v 'found symbolic link' >&2) | |