chore: check CI pipe #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |