Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-09-29
rustup default nightly-2021-09-29
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-09-29
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

- name: Run cargo check
run: cargo +nightly-2021-09-29 check
run: cargo +nightly-2021-11-07 check

test:
name: Test Suite
Expand All @@ -56,14 +56,14 @@ jobs:
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-09-29
rustup default nightly-2021-09-29
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-09-29
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

# Runs integration tests in the runtime/tests folder
- name: Run All Tests
run: |
cargo +nightly-2021-09-29 test
cargo +nightly-2021-11-07 test

lints:
name: Lints
Expand All @@ -88,19 +88,19 @@ jobs:
override: true
components: rustfmt, clippy

# nightly-2021-09-29-x86_64-unknown-linux-gnu
# nightly-2021-11-07-x86_64-unknown-linux-gnu
- name: Initialize WASM build environment
run: |
rustup update stable
rustup toolchain install nightly-2021-09-29
rustup default nightly-2021-09-29
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-09-29
rustup toolchain install nightly-2021-11-07
rustup default nightly-2021-11-07
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-11-07

# Ignore use of Rust Linting since rearranging makes it challenging to update to latest Substrate
# - name: Run cargo fmt
# run: |
# rustup component add rustfmt --toolchain nightly-2021-09-29-x86_64-unknown-linux-gnu
# cargo +nightly-2021-09-29 fmt --all -- --check
# rustup component add rustfmt --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# cargo +nightly-2021-11-07 fmt --all -- --check

# Ignore use of Clippy until a clippy.toml file may be used. See README.md
# - name: Run cargo clippy
Expand All @@ -110,6 +110,6 @@ jobs:
# # args: --release -- -D warnings
# # FIXME - temporary fix below. See https://github.com/rust-lang/rust-clippy/issues/5094#issuecomment-579116431
# run: |
# rustup component add clippy --toolchain nightly-2021-09-29-x86_64-unknown-linux-gnu
# rustup component add clippy-preview --toolchain nightly-2021-09-29-x86_64-unknown-linux-gnu
# cargo +nightly-2021-09-29 clippy-preview -Zunstable-options
# rustup component add clippy --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# rustup component add clippy-preview --toolchain nightly-2021-11-07-x86_64-unknown-linux-gnu
# cargo +nightly-2021-11-07 clippy-preview -Zunstable-options
Loading