Deps bump sec audit #678
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
on: [push, pull_request] | |
name: master | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
check-protos: | |
name: Check protos | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install protobuf | |
run: sudo apt update && sudo apt-get -y install protobuf-compiler | |
- name: Generate Rust code from .proto files | |
run: cargo run -p gen-protos | |
- name: Check for uncommitted changes | |
run: git diff --exit-code | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test for nekoton | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features | |
- name: Run cargo test for nekoton-abi | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features --all-targets -p nekoton-abi | |
- name: Run cargo test for nekoton-derive | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features --all-targets -p nekoton-derive | |
- name: Run cargo test for nekoton-abi | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features --all-targets -p nekoton-abi | |
- name: Run cargo test for nekoton-utils | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features --all-targets -p nekoton-utils | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Run cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features --all-targets -- -D warnings |