[geth] persistence and securityContext improvements #905
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: Lint and Test Charts | |
on: pull_request | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Run quintush/helm-unittest | |
uses: docker://quintush/helm-unittest:3.10.1-0.2.10 | |
with: | |
entrypoint: ./.github/scripts/unit-test.sh | |
args: dysnix/ | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.15.2 | |
- | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- | |
uses: helm/[email protected] | |
- | |
name: Config chart-testing | |
run: cp .github/ct.yaml $CT_CONFIG_DIR | |
- | |
name: Lint chart-testing | |
run: ct lint | |
- | |
name: Changes chart-testing | |
id: charts | |
# 1. get library chart list - /tmp/_library_charts | |
# 2. get list of the charts changed (striping ct control output) - /tmp/_changed_charts | |
# 3. create list of charts to test (excluding library charts) - $test_list | |
# 4. exclude library charts list, a comma separated list of library charts - $exclude_list | |
run: | | |
ls -1 dysnix/*/Chart.yaml | xargs grep -E "type:\s+library" | sed 's/\/Chart.yaml.*//' > /tmp/_library_charts || /bin/true | |
ct list-changed | sed '/^>>>.*/d' > /tmp/_changed_charts | |
test_list=$(grep -v -x -f /tmp/_library_charts /tmp/_changed_charts 2>/dev/null || /bin/true) | |
exclude_list=$(cat /tmp/_library_charts | sed '/^ *$/d;N;s/\n/,/' | sed 's/dysnix\///g') | |
if [[ -n "$test_list" ]]; then | |
echo "testing=true" >> "$GITHUB_OUTPUT" | |
fi | |
if [[ -n "$exclude_list" ]]; then | |
echo "excluded-charts=--excluded-charts ${exclude_list}" >> "$GITHUB_OUTPUT" | |
fi | |
- | |
name: Create Kubernetes Cluster (kind) | |
uses: helm/[email protected] | |
with: | |
node_image: kindest/node:v1.29.4 | |
if: steps.charts.outputs.testing == 'true' | |
- | |
name: Install Charts chart-testing | |
run: ct install ${{ steps.charts.outputs.excluded-charts }} | |
if: steps.charts.outputs.testing == 'true' |