Skip to content

add foundry to ci

add foundry to ci #35

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
ETH_RPC_URL: https://eth.drpc.org
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- name: Clone Repository
run: |
git clone https://github.com/halo3mic/erc20-topup.git
cd erc20-topup
- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
/home/runner/.foundry/bin/foundryup
- name: Update
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --nocapture
- name: Run Clippy
run: cargo clippy