Skip to content

chore: check CI pipe #79

chore: check CI pipe

chore: check CI pipe #79

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 and mocks
# run: RUSTFLAGS='-C link-arg=-s' cargo build --all --target wasm32-unknown-unknown --release
# build-mocks:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Build mocks
# working-directory: ./mocks
# run: RUSTFLAGS='-C link-arg=-s' cargo build --all --target wasm32-unknown-unknown --release
test:
runs-on: ubuntu-latest
# needs: [build-mocks, build]
steps:
- uses: actions/checkout@v3
- name: Install wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
# - name: conversion proxy unit tests
# run: cargo test -p conversion_proxy
# - name: fungible proxy unit tests
# run: cargo test -p fungible_proxy
# - name: fungible conversion proxy unit tests
# run: cargo test - fungible_conversion_proxy
- name: Run integration tests
run: cargo test
lint:
runs-on: ubuntu-latest
steps:
- name: Run Cargo format check
run: cargo fmt -- --check