--- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -8,15 +8,29 @@ steps: - uses: actions/checkout@v1 - - uses: icepuma/rust-action@master + - name: Install latest nightly + uses: actions-rs/toolchain@v1 with: - args: cargo fmt -- --check + toolchain: nightly + default: true + target: wasm32-unknown-unknown + components: rustfmt, clippy + - name: Run cargo fmt + run: cargo fmt -- --check clippy: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 - - uses: icepuma/rust-action@master + - name: Install substrate dependencies + run: sudo apt-get install libssl-dev pkg-config libclang-dev clang + - name: Install latest nightly + uses: actions-rs/toolchain@v1 with: - args: cargo clippy -- -Dwarnings \ No newline at end of file + toolchain: nightly + default: true + target: wasm32-unknown-unknown + components: rustfmt, clippy + - name: Run cargo check + run: cargo clippy -- -Dwarnings