-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.29 KB
/
pr-test-basic.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
##########################################################
#
# Workflow for running test on the self-hosted machine.
#
# Workflow is triggered on each pull request with
# label `!ci-test-basic`
#
##########################################################
name: Run Tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-test:
runs-on: [self-hosted, benchmark]
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name,'!ci-test-basic') }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Install protobuf
run: sudo apt update && sudo apt install -y protobuf-compiler
- name: Build binary
run: "docker compose --profile ethereum down -v\ndocker compose --profile astar down -v \n./scripts/build_docker.sh \ndocker compose --profile ethereum up -d\ndocker compose --profile astar up -d\n"
- name: Run test
run: |
docker compose run tester --network-id 3 --target-url ws://ethereum:8545 gmp
docker compose run tester --network-id 6 --target-url ws://astar:9944 gmp