mirror of
https://github.com/tlsnotary/rs-merkle.git
synced 2026-01-08 06:23:54 -05:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Build and test
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
- name: Run tests
|
|
run: cargo test
|
|
no_std_build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
target: thumbv7em-none-eabi
|
|
- name: Build without std
|
|
run: cargo build --no-default-features --target thumbv7em-none-eabi
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
- name: Install Clippy
|
|
run: rustup component add clippy
|
|
- name: Run linter
|
|
run: cargo clippy -- -D warnings
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
- name: Install rustfmt
|
|
run: rustup component add rustfmt
|
|
- name: Check format
|
|
run: cargo fmt --all -- --check
|