-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (35 loc) · 1.12 KB
/
relayer.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
name: Relayer
on:
push:
branches:
- develop
- main
pull_request:
jobs:
relayer_run_unit_tests:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Install Nix
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: nix develop -c make build-go-relayer
- name: Unit Test
run: nix develop -c make test-unit-go
- name: Upload Golangci relayer results
if: always()
uses: actions/upload-artifact@v3
with:
name: go-unit-tests-results
path: |
./relayer/output.txt
./relayer/coverage.txt
./relayer/race_coverage.txt
- name: Install starknet-devnet (via venv+pip)
run: nix develop -c pip install -r contracts/requirements.txt -c contracts/constraints.txt
- name: Integration Test
run: nix develop -c make test-integration-go