Add set
preset
#248
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
block-autosquash-commits: | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Block merging fixup commits | |
uses: ErichDonGubler/block-fixup-merge-action@patch-1 | |
check: | |
name: Check | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.rust != 'stable' }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable, beta] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: "Run `cargo check`" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
test: | |
name: Test Suite | |
needs: [check] | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.rust != 'stable' }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable, beta] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: "Run `cargo test`" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
fmt: | |
name: Rustfmt | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt | |
- name: "Run `cargo fmt`" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
needs: [check] | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.rust != 'stable' }} | |
strategy: | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: clippy | |
- name: "Run `cargo clippy`" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-targets --all-features -- -D warnings | |
rustdoc: | |
name: Documentation | |
needs: [check] | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.rust != 'stable' }} | |
strategy: | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: clippy | |
- name: Run `RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --no-deps` | |
uses: actions-rs/cargo@v1 | |
env: | |
RUSTDOCFLAGS: -Dwarnings | |
with: | |
command: doc | |
args: --all-features --no-deps | |
cargo-deny: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
log-level: warn | |
command: check | |
arguments: --all-features |