-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1.54 KB
/
test.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
49
50
name: Test Auction Arbitrage Bot
on: [push]
env:
GO_VERSION: 1.21
jobs:
test:
name: python test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Compile protobuf
run: nix develop --command make proto
- name: Lint
run: nix develop --command make lint
- name: Run tests
run: nix develop --command make test
int-test:
name: integration test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install local-ic
run: cd local-interchaintest && git clone https://github.com/strangelove-ventures/interchaintest.git && cd interchaintest/local-interchain && make install
- name: Install nix
uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Get cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Compile protobuf
run: nix develop --command make proto
- name: Run local-interchaintest
run: cd local-interchaintest && local-ic start neutron_osmosis_gaia --api-port 42069 & curl --head -X GET --retry 200 --retry-connrefused --retry-delay 1 http://localhost:42069 && cd local-interchaintest && nix develop --command make test