2020-07-29 11:45:51 +02:00
|
|
|
name: Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-10-12 10:55:21 +02:00
|
|
|
- main
|
2020-10-26 10:27:44 +01:00
|
|
|
- dev
|
2020-07-29 11:45:51 +02:00
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
2020-10-23 10:43:18 +02:00
|
|
|
runs-on: ubuntu-16.04
|
2020-07-29 11:45:51 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2020-10-12 10:55:21 +02:00
|
|
|
uses: actions/checkout@main
|
2020-07-29 11:45:51 +02:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install stable toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
- name: Run cargo check 1/3
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --locked --no-default-features --verbose
|
|
|
|
- name: Run cargo check 2/3
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2021-02-25 17:21:02 +01:00
|
|
|
args: --locked --manifest-path crates/runtime/io/Cargo.toml --no-default-features --verbose
|
2020-07-29 11:45:51 +02:00
|
|
|
- name: Run cargo check 3/3
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2021-02-25 17:21:02 +01:00
|
|
|
args: --locked --manifest-path crates/runtime/io/Cargo.toml --features "mio" --verbose
|
2020-07-29 11:45:51 +02:00
|
|
|
- name: Run cargo check evmbin
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --locked -p evmbin --verbose
|
|
|
|
- name: Run cargo check benches
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --locked --all --benches --verbose
|
|
|
|
- name: Run validate chainspecs
|
|
|
|
run: ./scripts/actions/validate-chainspecs.sh
|