Merge remote-tracking branch 'moonbeam/upgrade-to-polkadot-v1.1.0' in… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: | |
- master | |
- polkadot-** | |
- develop** | |
paths-ignore: | |
- '**/README.md' | |
push: | |
branches: | |
- master | |
- polkadot-** | |
- develop** | |
paths-ignore: | |
- '**/README.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# env: | |
# SCCACHE_CACHE_SIZE: "60G" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: nightly-2023-04-15 | |
components: rustfmt | |
target: wasm32-unknown-unknown | |
- name: Install Wasm toolchain | |
run: rustup target add wasm32-unknown-unknown | |
- name: Check format | |
run: make dev-format-check | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Update | |
run: cargo update | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
- name: Check for Wasm | |
run: make dev-check | |
- name: Run tests | |
run: make dev-test |