Skip to content

Commit 35fb32a

Browse files
author
Gleb
authored
Update e2e test action (#1946)
* Update e2e tests action * Add test filter * Update action hash * Fix call * update ref * Update ref * Update ref * Update ref
1 parent f4fd838 commit 35fb32a

1 file changed

Lines changed: 5 additions & 107 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 5 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -10,110 +10,8 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
integration:
14-
name: System tests
15-
strategy:
16-
matrix:
17-
scenario-filter: ["^TestDappDevelop$/^.*$"]
18-
runs-on: ubuntu-latest-4-cores
19-
env:
20-
# where git refs and images are available for the same artifact, the image
21-
# can be set to pull a pre-compiled image from dockerhub, while the git
22-
# refs can be used to build from source within this workflow.
23-
24-
# the gh tag of system-test repo version to run
25-
SYSTEM_TEST_GIT_REF: master
26-
27-
# the pre-compiled image to use of quickstart, or the git ref to build
28-
# from source.
29-
SYSTEM_TEST_QUICKSTART_IMAGE: stellar/quickstart:testing
30-
# SYSTEM_TEST_QUICKSTART_GIT_REF: "https://github.com/stellar/quickstart.git#master"
31-
32-
# the version of components built in quickstart. only used if quickstart
33-
# is configured above to build from source.
34-
# SYSTEM_TEST_PROTOCOL_VERSION_DEFAULT: 21
35-
# SYSTEM_TEST_RS_XDR_GIT_REF: v21.0.1
36-
# SYSTEM_TEST_CORE_IMAGE:
37-
# SYSTEM_TEST_CORE_GIT_REF: https://github.com/stellar/stellar-core.git#v21.0.0rc1
38-
# SYSTEM_TEST_CORE_COMPILE_CONFIGURE_FLAGS: "--disable-tests"
39-
# SYSTEM_TEST_SOROBAN_RPC_REF: https://github.com/stellar/soroban-rpc.git#v21.0.1
40-
41-
# the soroban CLI & RPC source code to compile and run from system test
42-
# refers to checked out source of current git hub ref context
43-
SYSTEM_TEST_SOROBAN_CLI_REF: ${{ github.workspace }}/soroban-cli
44-
45-
# sets the version of rust toolchain that will be pre-installed in the
46-
# test runtime environment, tests invoke rustc/cargo
47-
SYSTEM_TEST_RUST_TOOLCHAIN_VERSION: stable
48-
49-
# set the version of js-stellar-sdk to use, need to choose one of either
50-
# resolution options, using npm release or a gh ref:
51-
# option #1, set the version of stellar-sdk based on a npm release version
52-
SYSTEM_TEST_JS_STELLAR_SDK_NPM_VERSION: 12.2.0
53-
# option #2, set the version of stellar-sdk used as a ref to a gh repo if
54-
# a value is set on SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO, it takes
55-
# precedence over any SYSTEM_TEST_JS_STELLAR_SDK_NPM_VERSION
56-
# SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO:
57-
# SYSTEM_TEST_JS_STELLAR_SDK_GH_REF:
58-
59-
# triggers system test to log out details from quickstart's logs and test steps
60-
SYSTEM_TEST_VERBOSE_OUTPUT: "true"
61-
62-
# the soroban test cases will compile various contracts from the examples repo
63-
SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_HASH: "main"
64-
SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_REPO: "https://github.com/stellar/soroban-examples.git"
65-
66-
steps:
67-
- uses: actions/checkout@v4
68-
name: checkout current pr source
69-
with:
70-
path: soroban-cli
71-
- uses: actions/checkout@v4
72-
name: checkout system-test
73-
with:
74-
repository: stellar/system-test
75-
ref: ${{ env.SYSTEM_TEST_GIT_REF }}
76-
path: system-test
77-
78-
- if: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO != ''}}
79-
name: prepare local js-stellar-sdk
80-
run: |
81-
rm -rf $GITHUB_WORKSPACE/system-test/js-stellar-sdk;
82-
83-
- if: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO != ''}}
84-
uses: actions/checkout@v4
85-
with:
86-
repository: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO }}
87-
ref: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REF }}
88-
path: system-test/js-stellar-sdk
89-
90-
- uses: stellar/actions/rust-cache@main
91-
- name: Build system test with component versions
92-
run: |
93-
cd $GITHUB_WORKSPACE/system-test
94-
if [ -z "$SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO" ]; then \
95-
JS_STELLAR_SDK_REF="$SYSTEM_TEST_JS_STELLAR_SDK_NPM_VERSION"; \
96-
else \
97-
JS_STELLAR_SDK_REF="file:/home/tester/js-stellar-sdk"; \
98-
fi
99-
make \
100-
PROTOCOL_VERSION_DEFAULT=$SYSTEM_TEST_PROTOCOL_VERSION_DEFAULT \
101-
CORE_GIT_REF=$SYSTEM_TEST_CORE_GIT_REF \
102-
CORE_COMPILE_CONFIGURE_FLAGS="$SYSTEM_TEST_CORE_COMPILE_CONFIGURE_FLAGS" \
103-
CORE_IMAGE=$SYSTEM_TEST_CORE_IMAGE \
104-
SOROBAN_RPC_GIT_REF=$SYSTEM_TEST_SOROBAN_RPC_REF \
105-
SOROBAN_CLI_GIT_REF=$SYSTEM_TEST_SOROBAN_CLI_REF \
106-
RUST_TOOLCHAIN_VERSION=$SYSTEM_TEST_RUST_TOOLCHAIN_VERSION \
107-
RS_XDR_GIT_REF=$SYSTEM_TEST_RS_XDR_GIT_REF \
108-
QUICKSTART_IMAGE=$SYSTEM_TEST_QUICKSTART_IMAGE \
109-
QUICKSTART_GIT_REF=$SYSTEM_TEST_QUICKSTART_GIT_REF \
110-
JS_STELLAR_SDK_NPM_VERSION=$JS_STELLAR_SDK_REF \
111-
build
112-
113-
- name: Run system test scenarios
114-
run: |
115-
docker run --rm -t --name e2e_test stellar/system-test:dev \
116-
--VerboseOutput $SYSTEM_TEST_VERBOSE_OUTPUT \
117-
--TestFilter "${{ matrix.scenario-filter }}" \
118-
--SorobanExamplesGitHash $SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_HASH \
119-
--SorobanExamplesRepoURL $SYSTEM_TEST_SOROBAN_EXAMPLES_GIT_REPO
13+
systems-test:
14+
uses: stellar/system-test/.github/workflows/test.yml@master
15+
with:
16+
stellar-cli-ref: ${{ github.ref }}
17+
test-filter: "^TestDappDevelop$/^.*$"

0 commit comments

Comments
 (0)