-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 1.1 KB
/
build-and-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
name: build and test
on:
push:
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- name: Build contracts
run: RUSTFLAGS='-C link-arg=-s' cargo build --all --target wasm32-unknown-unknown --release
build-mocks:
runs-on: ubuntu-latest
steps:
- name: Build and run mocks unit tests
working-directory: ./mocks
run: cargo test
test:
runs-on: ubuntu-latest
needs: [build-mocks, build]
steps:
# - name: Build and run conversion proxy unit tests
# working-directory: ./conversion_proxy
# run: cargo test
# - name: Build and run fungible proxy unit tests
# working-directory: ./fungible_proxy
# run: cargo test
# - name: Build and run fungible conversion proxy unit tests
# working-directory: ./fungible_conversion_proxy
# run: cargo test
- name: Run integration tests
run: ./test.sh