Update to polkadot-v1.1.0 #100
Workflow file for this run
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: Build and Test | |
on: | |
push: | |
branches: | |
- release-** | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
test-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free up space on runner | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Rust Setup | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
components: rustfmt, clippy | |
- name: Install protoc | |
run: | | |
sudo apt-get install -y protobuf-compiler | |
protoc --version | |
- uses: actions/checkout@v3 | |
- name: Rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: stable | |
command: fmt | |
args: --all --check | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
with: | |
cache-on-failure: true | |
cache-all-crates: true | |
- name: Check Build | |
run: | | |
cargo check --release | |
- name: Run tests | |
run: cargo test --release --locked --verbose --all | |
# Enable this for clippy linting. | |
# - name: Check and Lint Code | |
# run: cargo clippy -- -D warnings |