-
Notifications
You must be signed in to change notification settings - Fork 122
71 lines (59 loc) · 1.76 KB
/
e2e.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Dozer E2E Test
on:
pull_request_target:
branches: [main]
workflow_dispatch:
merge_group:
env:
CARGO_TERM_COLOR: always
DOZER_DEV: ci
concurrency:
group: e2e/${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# Run e2e test
e2e:
timeout-minutes: 60
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-16-cores
steps:
- if: github.event_name == 'pull_request_target'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- if: github.event_name != 'pull_request_target'
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: ⚡ Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/.package-cache
~/.cargo/registry/
~/.cargo/git/db/
target/
key: build-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
build-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
build-${{ runner.os }}-cargo-
- name: Build dozer
run: cargo build --features ethereum,mongodb --bin dozer
- name: Build dozer-tests
run: cargo build --bin dozer-tests
- name: Run dozer-tests
run: cargo run --bin dozer-tests
env:
ETH_WSS_URL: ${{ secrets.ETH_WSS_URL }}
ETH_HTTPS_URL: ${{ secrets.ETH_HTTPS_URL }}