mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 13:48:04 +00:00
055ebff52d
* Remove integration-tests feature, use test node process * Allow tests to run in parallel * Fmt * Fix errors * Fix more errors * Use test node process in test context * Remove code for managing accounts for contract tests * Update contract dispatchables * Fix up contract calls for 3.0 compat * Fmt * Fix up some tests * Fix some more tests * Fix some more tests * Fmt
41 lines
855 B
YAML
41 lines
855 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: setup
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
components: rustfmt
|
|
target: wasm32-unknown-unknown
|
|
|
|
- name: download-substrate
|
|
run: |
|
|
curl "https://releases.parity.io/substrate/x86_64-debian:stretch/v3.0.0/substrate/substrate" --output substrate --location
|
|
chmod +x ./substrate
|
|
mkdir -p ~/.local/bin
|
|
mv substrate ~/.local/bin
|
|
|
|
- name: fmt
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: build
|
|
run: cargo build --workspace --verbose
|
|
|
|
- name: test
|
|
run: cargo test --workspace --verbose
|