-
Notifications
You must be signed in to change notification settings - Fork 43
49 lines (37 loc) · 1.19 KB
/
e2e-tests-suite.yml
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
---
name: E2E tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Install protoc compiler
shell: bash
run: |
sudo apt-get install -y protobuf-compiler
- name: Checkout Source code
uses: actions/checkout@v3
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-targets: true
- name: build binary
run: cargo build
- name: Run a node
shell: bash
# This path is very specific to github actions. There must be a better way to do this, but I can't figure it out.
run: /home/runner/work/Academy-PoW/Academy-PoW/target/debug/academy-pow --dev &
- name: Verify chain responds
shell: bash
run: |
alias curl='docker run -it --rm curlimages/curl:8.1.2'
curl --retry 12 --retry-all-errors --retry-delay 3 -H "Content-Type: application/json" -d '{ "id": 1, "jsonrpc": "2.0", "method": "rpc_methods"}' http://127.0.0.1:9944