-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.66 KB
/
pr-optional-compose.yaml
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
# Triggered via !ci-test-basic tag
name: Check basic integration
on:
pull_request:
types: [labeled, unlabeled, opened, reopened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-basic:
runs-on: [self-hosted, integration]
if: ${{ contains(github.event.pull_request.labels.*.name,'!ci-test-basic') }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure sccache env for Rust
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Build dev containers
run: |
./scripts/build_docker.sh
- name: Setup containers
run: |
docker compose --profile ethereum up -d
- name: Setup chain
run: |
docker compose run --rm --remove-orphans tester --network '3;ws://ethereum:8545' set-shard-config 1 1
docker compose run --rm --remove-orphans tester --network '3;ws://ethereum:8545' fund-wallet
- name: Run EvmViewCall task
timeout-minutes: 15
run: |
sleep 10
docker compose run --rm --remove-orphans tester --network '3;ws://ethereum:8545' --network '3;ws://ethereum:8545' test basic
- name: Run GMP tests
timeout-minutes: 15
run: |
sleep 10
docker compose run --rm --remove-orphans tester --network '3;ws://ethereum:8545' --network '3;ws://ethereum:8545' test gmp
- name: Cleanup
if: ${{ always() }}
run: |
docker compose --profile "*" down