Skip to content

Commit d621cf0

Browse files
authored
feat: add back k8s tests (#699)
1 parent 440fb31 commit d621cf0

File tree

2 files changed

+57
-3
lines changed

2 files changed

+57
-3
lines changed

.github/workflows/per-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
run_starlark:
12-
runs-on: self-hosted-ghr-size-l-x64
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Login to Docker Hub
1515
uses: docker/login-action@v3
@@ -43,7 +43,7 @@ jobs:
4343
"./.github/tests/minimal.yaml",
4444
"./network_params.yaml"
4545
]
46-
runs-on: self-hosted-ghr-size-l-x64
46+
runs-on: ubuntu-latest
4747
steps:
4848
- name: Login to Docker Hub
4949
uses: docker/login-action@v3
@@ -80,7 +80,7 @@ jobs:
8080
run: kurtosis lint ${{ github.workspace }}
8181

8282
assertoor:
83-
runs-on: self-hosted-ghr-size-l-x64
83+
runs-on: ubuntu-latest
8484
timeout-minutes: 30
8585
steps:
8686
- name: Login to Docker Hub

.github/workflows/run-k8s.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

Comments
 (0)