-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.33 KB
/
hermes.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
name: Hermes Relayer
on:
pull_request: {}
push:
branches: main
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
starknet-integration-tests:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
relayer -> relayer/target
- name: Run Clippy
working-directory: ./relayer
run: |
nix shell ..#rust -c \
cargo clippy --all-targets --all-features -- -D warnings
- name: Run Integration Tests
env:
RUST_BACKTRACE: 1
working-directory: ./relayer
run: |
export ERC20_CONTRACT="$(pwd)/../artifacts/openzeppelin_ERC20Upgradeable.contract_class.json"
nix develop ..#rust -c \
cargo nextest run --test-threads=2