chore(ethereum-node): bump client chart deps to latest #216
Workflow file for this run
This file contains hidden or 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: charts/ethereum-node | |
| on: | |
| pull_request: | |
| paths: | |
| - charts/ethereum-node/** | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.head_ref }}-${{ matrix.network }}-${{ matrix.consensus }}-${{ matrix.execution }} | |
| cancel-in-progress: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| consensus: [teku, prysm, lighthouse, nimbus, lodestar, grandine] | |
| execution: [geth, nethermind, erigon, besu, reth, ethrex] | |
| network: [sepolia, mainnet] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch default branch | |
| run: git fetch origin ${{ github.event.repository.default_branch }}:${{ github.event.repository.default_branch }} | |
| - name: Set up Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| with: | |
| version: v3.18.4 | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: 3.12 | |
| - name: Install pre-commit | |
| run: | | |
| python -m pip install pre-commit | |
| python -m pip freeze --local | |
| shell: bash | |
| - name: Cache pre-commit hooks | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
| - name: Run pre-commit hooks | |
| run: pre-commit run --show-diff-on-failure --color=always --all-files | |
| shell: bash | |
| - name: Install chart-testing | |
| run: | | |
| CT_VERSION=3.13.0 | |
| YAMLLINT_VERSION=1.33.0 | |
| YAMALE_VERSION=6.0.0 | |
| curl -sSLo ct.tar.gz "https://github.com/helm/chart-testing/releases/download/v${CT_VERSION}/chart-testing_${CT_VERSION}_linux_amd64.tar.gz" | |
| mkdir -p "$HOME/.ct" | |
| tar -xzf ct.tar.gz -C "$HOME/.ct" | |
| rm ct.tar.gz | |
| echo "$HOME/.ct" >> $GITHUB_PATH | |
| echo "CT_CONFIG_DIR=$HOME/.ct/etc" >> $GITHUB_ENV | |
| python -m pip install "yamllint==${YAMLLINT_VERSION}" "yamale==${YAMALE_VERSION}" | |
| - name: Check if chart got changed | |
| id: list-changed | |
| run: | | |
| if ct list-changed --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} | grep -q 'charts/ethereum-node'; then | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Run chart-testing (lint) | |
| run: > | |
| ct lint | |
| --config ct.yaml | |
| --target-branch ${{ github.event.repository.default_branch }} | |
| --charts charts/ethereum-node | |
| - name: Create kind cluster | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 | |
| if: steps.list-changed.outputs.changed == 'true' | |
| - name: Run chart-testing (install) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: > | |
| ct install | |
| --config ct.yaml | |
| --target-branch ${{ github.event.repository.default_branch }} | |
| --charts charts/ethereum-node | |
| --helm-extra-set-args=" | |
| --values=charts/ethereum-node/ci/networks/${{ matrix.network }}.yaml | |
| --values=charts/ethereum-node/ci/clients/execution/${{ matrix.execution }}.yaml | |
| --values=charts/ethereum-node/ci/clients/consensus/${{ matrix.consensus }}.yaml | |
| " |