Skip to content

Implement the next API #133

Implement the next API

Implement the next API #133

Workflow file for this run

name: Rust
on:
push:
branches: [main, staging, trying]
pull_request:
branches: [main]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
CI: 1
RUSTFLAGS: "-W rust-2021-compatibility -D warnings"
RUST_BACKTRACE: short
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
- name: Build tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-run
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: Build examples
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --examples
- name: Test examples
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --examples