From 26ff68045a96455530af56e27abd8b8bebdd5a05 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Wed, 31 Jan 2024 23:17:02 +0900 Subject: [PATCH 1/3] add e2e test for CI Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9726444..90220bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,17 +1,30 @@ name: test - -on: - push: - branches: - - main - pull_request: +on: [push, pull_request] jobs: - relayer: + e2e-test: runs-on: ubuntu-22.04 + env: + SGX_MODE: SW steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 with: go-version: '1.20' - - run: make yrly + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + - uses: datachainlab/rust-cache@allow_registry_src_caching + with: + workspaces: | + ./lcp + ./lcp/enclave + cache-directories: | + ~/.cargo/registry/src/**/librocksdb-sys-* + - run: curl -LO https://download.01.org/intel-sgx/sgx-linux/2.19/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.19.100.3.bin + - run: chmod +x ./sgx_linux_x64_sdk_2.19.100.3.bin + - run: echo -e 'no\n/opt' | ./sgx_linux_x64_sdk_2.19.100.3.bin + - run: make tendermint-images + - run: source /opt/sgxsdk/environment && make e2e-test From da55c3ef2c0905ce9f73d12b3d32d2b1e111f77e Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Wed, 31 Jan 2024 23:23:13 +0900 Subject: [PATCH 2/3] fix to checkout submodules Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90220bd..5a47697 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + submodules: recursive fetch-depth: 0 - uses: actions/setup-go@v5 with: From 67527f0e577047c799e3c5aeb4b393dfea3c028b Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Wed, 31 Jan 2024 23:47:37 +0900 Subject: [PATCH 3/3] fix workflow trigger Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a47697..198082e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,9 @@ name: test -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: e2e-test: