|
| 1 | +name: Run k8s test |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + workflow_dispatch: |
| 6 | + schedule: |
| 7 | + - cron: '0 2 * * *' |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: "scheduled-test" |
| 11 | + cancel-in-progress: false |
| 12 | + |
| 13 | +jobs: |
| 14 | + run_k8s_test: |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + payload: |
| 18 | + - { name: "minimal", file: "./.github/tests/minimal.yaml" } |
| 19 | + - { name: "network-params", file: "./network_params.yaml" } |
| 20 | + runs-on: ubuntu-latest |
| 21 | + steps: |
| 22 | + - name: Checkout Repository |
| 23 | + uses: actions/checkout@v4 |
| 24 | + - name: Setup minikube |
| 25 | + id: minikube |
| 26 | + uses: medyagh/setup-minikube@latest |
| 27 | + - name: Get kubeconfig |
| 28 | + id: kubeconfig |
| 29 | + shell: bash |
| 30 | + run: | |
| 31 | + cat ~/.kube/config > kubeconfig |
| 32 | + echo "kubeconfig=$(cat kubeconfig | base64 -w 0)" >> $GITHUB_OUTPUT |
| 33 | + # run kurtosis test and assertoor |
| 34 | + - name: Run kurtosis testnet |
| 35 | + id: testnet |
| 36 | + uses: ethpandaops/kurtosis-assertoor-github-action@v1 |
| 37 | + with: |
| 38 | + kurtosis_extra_args: "--image-download always --non-blocking-tasks --verbosity DETAILED" |
| 39 | + kurtosis_backend: "kubernetes" |
| 40 | + kubernetes_config: "${{ steps.kubeconfig.outputs.kubeconfig }}" |
| 41 | + kubernetes_cluster: "minikube" |
| 42 | + kubernetes_storage_class: "standard" |
| 43 | + ethereum_package_branch: "${{ github.head_ref || github.ref_name }}" |
| 44 | + ethereum_package_args: "${{ matrix.payload.file }}" |
| 45 | + enclave_name: "ethereum-package-${{ matrix.payload.name }}-${{ github.run_id }}" |
| 46 | + persistent_logs: "true" |
| 47 | + |
| 48 | + - name: Notify |
| 49 | + if: cancelled() || failure() |
| 50 | + uses: Ilshidur/action-discord@master |
| 51 | + env: |
| 52 | + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} |
| 53 | + with: |
| 54 | + args: "The k8s nightly/per PR test for ${{matrix.payload.name}} on ethereum-package has failed find it here ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
0 commit comments