Merge pull request #248 from ricosjp/add-doc-any-holder #1161
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: {} | |
jobs: | |
test: | |
runs-on: ${{ vars.UBUNTU_VERSION }} | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- ${{ vars.MSRV }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt # espr uses rustfmt in tests | |
default: true | |
override: true | |
- uses: Swatinem/rust-cache@v1 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features | |
check-format: | |
runs-on: ${{ vars.UBUNTU_VERSION }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ vars.MSRV }} | |
profile: minimal | |
components: rustfmt | |
default: true | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
doc: | |
runs-on: ${{ vars.UBUNTU_VERSION }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ vars.MSRV }} | |
profile: minimal | |
default: true | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --no-deps | |
clippy: | |
runs-on: ${{ vars.UBUNTU_VERSION }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ vars.MSRV }} | |
profile: minimal | |
components: clippy | |
default: true | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy |