-
Notifications
You must be signed in to change notification settings - Fork 1.2k
77 lines (66 loc) · 2.15 KB
/
test-kurtosis-assertoor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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 }}