-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor e2e workflow (1st attempt)
- Loading branch information
1 parent
1c635ed
commit d5b45a9
Showing
1 changed file
with
42 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,58 +7,51 @@ on: | |
|
||
|
||
jobs: | ||
build-cdk-image: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.x | ||
|
||
- name: Build cdk docker image | ||
run: make build-docker | ||
|
||
- name: Save cdk image to archive | ||
run: docker save --output /tmp/cdk.tar cdk | ||
|
||
- name: Upload archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cdk | ||
path: /tmp/cdk.tar | ||
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
needs: build-cdk-image | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [ 1.22.x ] | ||
goarch: [ "amd64" ] | ||
e2e-group: | ||
- "fork9-validium" | ||
- "fork11-rollup" | ||
- "fork12-validium" | ||
- "fork12-rollup" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Checkout kurtosis-cdk repository | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
env: | ||
GOARCH: ${{ matrix.goarch }} | ||
|
||
- name: Build Docker | ||
run: make build-docker | ||
|
||
- name: Checkout kurtosis-cdk | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 0xPolygon/kurtosis-cdk | ||
path: kurtosis-cdk | ||
ref: v0.2.25 | ||
|
||
- name: Install Kurtosis CDK tools | ||
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk | ||
|
||
|
||
# this is better to get the action in | ||
- name: Install kurtosis | ||
shell: bash | ||
run: | | ||
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | ||
sudo apt update | ||
sudo apt install kurtosis-cli=1.4.1 | ||
kurtosis version | ||
- name: Disable kurtosis analytics | ||
shell: bash | ||
run: kurtosis analytics disable | ||
|
||
- name: Install yq | ||
shell: bash | ||
run: | | ||
pip3 install yq | ||
yq --version | ||
- name: Install polycli | ||
run: | | ||
POLYCLI_VERSION="${{ vars.POLYCLI_VERSION }}" | ||
|
@@ -69,27 +62,25 @@ jobs: | |
sudo chmod +x /usr/local/bin/polycli | ||
/usr/local/bin/polycli version | ||
- name: Install foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: checkout kurtosis-cdk | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 0xPolygon/kurtosis-cdk | ||
path: kurtosis-cdk | ||
ref: v0.2.25 | ||
|
||
- name: Setup Bats and bats libs | ||
uses: bats-core/[email protected] | ||
|
||
- name: Download cdk archive | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cdk | ||
path: /tmp | ||
|
||
- name: Load cdk image | ||
run: | | ||
docker load --input /tmp/cdk.tar | ||
docker image ls -a | ||
|
||
- name: Run e2e tests | ||
- name: Test | ||
run: make test-e2e-${{ matrix.e2e-group }} | ||
working-directory: test | ||
env: | ||
KURTOSIS_FOLDER: ${{ github.workspace }}/kurtosis-cdk | ||
BATS_LIB_PATH: /usr/lib/ | ||
agglayer_prover_sp1_key: ${{ secrets.SP1_PRIVATE_KEY }} | ||
|
||
- name: Dump enclave logs | ||
if: failure() | ||
|