Fix ethd when using podman, and CI #4593
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: Test ethd | |
| defaults: | |
| run: | |
| shell: bash | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| types: [opened, synchronize, labeled, unlabeled] | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-ethd: | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'test-ethd') || | |
| contains(github.event.pull_request.labels.*.name, 'test-all') || | |
| github.event_name == 'push' | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-15-intel] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Docker buildx | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Set up Docker on macOS | |
| if: ${{ startsWith(matrix.os, 'macos-') }} | |
| uses: douglascamata/setup-docker-macos-action@d5ccc6aae0ce23e7700154f5e63cc53e6433ac48 | |
| - name: Prerequisites on Ubuntu | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| run: | | |
| sudo apt-get install -y expect whiptail | |
| sudo apt-get remove -y podman | |
| - name: Prerequisites on macOS | |
| if: ${{ startsWith(matrix.os, 'macos-') }} | |
| run: brew install bash newt coreutils expect gawk | |
| - name: Use default.env | |
| run: cp default.env .env | |
| - name: Set old .env version | |
| run: | | |
| source ./.github/helper.sh | |
| ENV_VERSION=42 | |
| var=ENV_VERSION | |
| set_value_in_env | |
| COMPOSE_FILE=teku.yml:besu.yml | |
| var=COMPOSE_FILE | |
| set_value_in_env | |
| - name: Test ethd update | |
| run: ./ethd update --debug --non-interactive | |
| - name: Remove .env | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| run: rm .env | |
| - name: Test ethd config defaults | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| run: expect -d ./.github/test-ethd-config.exp all-defaults | |
| env: | |
| TERM: xterm | |
| - name: Test ethd config no mev | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| run: expect -d ./.github/test-ethd-config.exp no-mev | |
| env: | |
| TERM: xterm | |
| - name: Test ethd config no grafana | |
| if: ${{ startsWith(matrix.os, 'ubuntu-') }} | |
| run: expect -d ./.github/test-ethd-config.exp no-grafana | |
| env: | |
| TERM: xterm |