This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
test pr ci #5
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 | |
permissions: | |
contents: read | |
pull-requests: read | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: -Dwarnings | |
jobs: | |
clippy: | |
name: Clippy ${{matrix.rust-channel}} ${{matrix.os == 'windows' && '(windows)' || ''}} | |
runs-on: ${{matrix.os}}-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
rust-channel: [stable, beta, nightly] | |
os: [ubuntu, windows] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust-channel}} | |
components: clippy | |
- name: Clippy, Default Features | |
run: cargo clippy --all-targets | |
- name: Clippy, All Features | |
run: cargo clippy --all-features --all-targets | |
- name: Clippy, No Features | |
run: cargo clippy --no-default-features --all-targets | |
fmt: | |
name: Rustfmt ${{matrix.rust-channel}} | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
rust-channel: [stable, beta, nightly] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust-channel}} | |
components: rustfmt | |
- name: Check Formatting | |
run: cargo fmt --all --check | |
test: | |
name: Test ${{matrix.rust-channel}} ${{matrix.os == 'windows' && '(windows)' || ''}} | |
runs-on: ${{matrix.os}}-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
rust-channel: [stable, beta, nightly] | |
os: [ubuntu, windows] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust-channel}} | |
- name: Test Default Features | |
run: cargo test --all-targets | |
- name: Test All Features | |
run: cargo test --all-features --all-targets | |
- name: Test No Features | |
run: cargo test --no-default-features --all-targets |