Skip to content

Kurtosis Assertoor GitHub Action #116

Kurtosis Assertoor GitHub Action

Kurtosis Assertoor GitHub Action #116

name: Kurtosis Assertoor GitHub Action
on:
schedule:
- cron: "0 2,14 * * *" # runs at 2am and 2pm UTC
workflow_dispatch:
# pull_request:
# branches:
# - kurtosis_ci_fix
# types:
# - opened
# - reopened
# - synchronize
# - ready_for_review
# push:
# branches:
# - kurtosis_ci_fix
jobs:
define_matrix:
runs-on: ubuntu-latest
outputs:
os: ${{ steps.os.outputs.os }}
steps:
- name: Define os
id: os
run: echo 'os=["ubuntu-latest"]' >> "$GITHUB_OUTPUT"
assertoor_test:
needs: define_matrix
strategy:
matrix:
# list of os: https://github.com/actions/virtual-environments
os:
- ${{ fromJSON(needs.define_matrix.outputs.os) }}
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential
- name: download kurtosis config
run: |
wget -O kurtosis_config_with_p.yaml https://raw.githubusercontent.com/erigontech/erigon/main/.github/workflows/kurtosis/config.yaml
sed 's/<<ERIGON_IMAGE_PLACEHOLDER>>/erigontech\/erigon:main-latest/' kurtosis_config_with_p.yaml > kurtosis_config.yaml
- name: Run Kurtosis + assertoor tests
uses: ethpandaops/kurtosis-assertoor-github-action@v1
with:
enclave_name: "kurtosis-run-${{ matrix.os.name }}-${{ github.run_id }}"
ethereum_package_args: "./kurtosis_config.yaml"
#kurtosis_extra_args: --verbosity detailed --cli-log-level trace
enclave_dump: false
dnotifications:
name: Discord notification
needs:
- define_matrix
- assertoor_test
if: ${{ always() }}
strategy:
matrix:
# list of os: https://github.com/actions/virtual-environments
os:
- ${{ fromJSON(needs.define_matrix.outputs.os) }}
runs-on: ${{ matrix.os }}
steps:
- name: discord notifications push
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}