Skip to content

Upgrade polkadot-sdk 1.9.0 #36

Upgrade polkadot-sdk 1.9.0

Upgrade polkadot-sdk 1.9.0 #36

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
clean-up-actions:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
test:
runs-on: ubuntu-latest
needs: clean-up-actions
defaults:
run:
working-directory: lib/stable-asset
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-04-15
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
- name: Check format
run: cargo fmt --all -- --check
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run test
run: cargo test