Skip to content

Vanchor Transact tests #911

Vanchor Transact tests

Vanchor Transact tests #911

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- README.md
- CHANGELOG.md # Should never be edited anyway
- .gitignore
- .github/**
pull_request:
branches: [main]
types: [opened, synchronize, closed]
workflow_dispatch:
jobs:
webb:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
# Name should be the OS name only (e.g. Linux, macOS, Windows)
# This is used to generate the badge
name: webb crate (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Mold Linker
uses: rui314/setup-mold@v1
- name: Check Metadata generation
run: cargo build --features generate-substrate,generate-contracts
- name: Tests
run: cargo test -p webb
- name: Rustdoc build
run: cargo doc -p webb --no-deps --all-features
proposals:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
features:
- evm,std,scale
- substrate,std
- evm
test-features:
- evm,std,scale
- substrate,std
runs-on: ${{ matrix.os }}
# Name should be the OS name only (e.g. Linux, macOS, Windows)
# This is used to generate the badge
name: proposals crate (${{ matrix.os }} with ${{ matrix.features }} / ${{ matrix.test-features }})
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Mold Linker
uses: rui314/setup-mold@v1
- name: Build
run: cargo build -p webb-proposals --no-default-features --features ${{ matrix.features }}
- name: Tests
run: cargo test -p webb-proposals --no-default-features --features ${{ matrix.test-features }}
- name: Rustdoc
run: cargo doc -p webb-proposals --no-deps --no-default-features --features ${{ matrix.features }}
evm-test-utils:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
# Name should be the OS name only (e.g. Linux, macOS, Windows)
# This is used to generate the badge
name: evm-test-utils crate (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Mold Linker
uses: rui314/setup-mold@v1
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Tests
run: cargo test -p webb-evm-test-utils