Skip to content

Merge pull request #252 from rust-amplify/v4.0 #536

Merge pull request #252 from rust-amplify/v4.0

Merge pull request #252 from rust-amplify/v4.0 #536

Workflow file for this run

name: Lints
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc 1.70.0
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Formatting
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc 1.70.0
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Clippy
with:
command: clippy
args: --workspace --all-features
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc 1.70.0
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
components: rust-docs
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: Doc
with:
command: doc
args: --workspace --all-features