Fix workflow #4
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
types: [opened,synchronize,reopened] | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests-stable: | |
name: Tests (Stable) | |
runs-on: ubuntu-latest | |
environment: default | |
env: | |
ETH_MAINNET_HTTP: ${{ secrets.MAINNET_HTTP }} | |
ETH_MAINNET_WS: ${{ secrets.MAINNET_WS }} | |
RUST_LOG: info | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Add private.rs dummy file | |
run: 'echo "pub const KEY_ENCRYPTION_PWD: [u8; 16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];" > crates/defi-entities/src/private.rs' | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
- name: Install Anvil | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run cargo test | |
run: make test | |
fmt: | |
runs-on: ubuntu-latest | |
environment: default | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Add private.rs dummy file | |
run: 'echo "pub const KEY_ENCRYPTION_PWD: [u8; 16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];" > crates/defi-entities/src/private.rs' | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt | |
override: true | |
- name: Run cargo fmt | |
run: make fmt-check | |
clippy: | |
runs-on: ubuntu-latest | |
environment: default | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Add private.rs dummy file | |
run: 'echo "pub const KEY_ENCRYPTION_PWD: [u8; 16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];" > crates/defi-entities/src/private.rs' | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: clippy | |
override: true | |
- name: Run cargo clippy | |
run: make clippy |