fix(asset-cfg-tx): allow params to be optional in that #112
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: Rust | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout ptokens_core | |
uses: actions/checkout@v2 | |
- name: Install stable Rust (minimal) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Cache stable | |
uses: Swatinem/rust-cache@v1 | |
- name: Check code | |
run: cargo check | |
- name: Build code | |
run: cargo build | |
- name: Run tests | |
run: cargo test | |
check_formating_and_clippy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout ptokens_core | |
uses: actions/checkout@v2 | |
- name: Install nightly Rust (minimal with clippy and rustfmt) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Cache nightly | |
uses: Swatinem/rust-cache@v1 | |
- name: Check code formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Check clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: -- -D warnings |