From 0daf176a9d62d81d90545875b098ee246df548be Mon Sep 17 00:00:00 2001 From: sudeepdino008 Date: Thu, 12 Sep 2024 11:52:57 +0530 Subject: [PATCH] experiment --- .github/workflows/test-kurtosis-assertoor.yml | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-kurtosis-assertoor.yml b/.github/workflows/test-kurtosis-assertoor.yml index 247f13e668f..68ba7e01f68 100644 --- a/.github/workflows/test-kurtosis-assertoor.yml +++ b/.github/workflows/test-kurtosis-assertoor.yml @@ -19,20 +19,30 @@ on: 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: - - { id: ubuntu-22.04, name: ubuntu } - runs-on: ${{ matrix.os.id }} + - ${{ fromJSON(needs.define_matrix.outputs.os) }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: make docker (see dockerhub for image builds) run: DOCKER_TAG=thorax/erigon:ci-$GITHUB_SHA DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker - - name: Install dependencies on Linux if: runner.os == 'Linux' run: sudo apt update && sudo apt install build-essential @@ -50,9 +60,22 @@ jobs: #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 - if: ${{ always() }} with: github-token: ${{ secrets.github_token }} discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file