-
Notifications
You must be signed in to change notification settings - Fork 346
61 lines (57 loc) · 1.88 KB
/
e2e.yml
File metadata and controls
61 lines (57 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: e2e
on:
push:
branches: [master, release/**]
pull_request:
jobs:
test:
env:
NODE: "20"
name: Test contract.Client (${{ matrix.job }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
max-parallel: 2
matrix:
job: ["test:e2e"]
services:
rpc:
image: stellar/quickstart:testing@sha256:5333ec87069efd7bb61f6654a801dc093bf0aad91f43a5ba84806d3efe4a6322
ports:
- 8000:8000
env:
ENABLE_LOGS: true
NETWORK: local
ENABLE_SOROBAN_RPC: true
PROTOCOL_VERSION: 22
options: >-
--health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'"
--health-interval 10s
--health-timeout 5s
--health-retries 50
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE }}
- uses: stellar/stellar-cli@v23.4.0
# Install system dependencies required for Stellar CLI
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev pkg-config
# Workaround for some `yarn` nonsense, see:
# https://github.com/yarnpkg/yarn/issues/6312#issuecomment-429685210
- run: rustup target add wasm32v1-none
- run: yarn install --network-concurrency 1
- run: yarn playwright install
- run: yarn playwright install-deps
- run: yarn build:prod
- run: yarn ${{ matrix.job }}