Skip to content

fix(benches): Fixes compiler errors for benches #808

fix(benches): Fixes compiler errors for benches

fix(benches): Fixes compiler errors for benches #808

Workflow file for this run

name: test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
env:
MAINNET_EXECUTION_RPC: ${{ secrets.MAINNET_EXECUTION_RPC }}
GOERLI_EXECUTION_RPC: ${{ secrets.GOERLI_EXECUTION_RPC }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
args: --all
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -D warnings
wasm-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Check wasm compatibility for common and consensus-core
uses: actions-rs/cargo@v1
with:
command: check
args: --target wasm32-unknown-unknown -p common -p consensus-core --no-default-features