typos/.github/workflows/rust-next.yml

81 lines
2.1 KiB
YAML
Raw Normal View History

2021-07-07 16:38:16 -04:00
name: rust-next
on:
schedule:
- cron: '3 3 3 * *'
jobs:
test:
name: Test
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
rust: ["stable", "beta"]
include:
- os: ubuntu-latest
rust: "nightly"
continue-on-error: ${{ matrix.rust != 'stable' }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-07-07 16:38:16 -04:00
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
2022-02-15 14:31:29 -05:00
- name: Build
run: cargo test --no-run --workspace --all-features
2021-07-07 16:38:16 -04:00
- name: Default features
run: cargo test --workspace
- name: All features
run: cargo test --workspace --all-features
- name: No-default features
run: cargo test --workspace --no-default-features
rustfmt:
name: rustfmt
strategy:
matrix:
rust:
- stable
- beta
continue-on-error: ${{ matrix.rust != 'stable' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-07-07 16:38:16 -04:00
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v1
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: clippy
strategy:
matrix:
rust:
2022-10-04 11:51:03 -04:00
- 1.64.0 # MSRV
2021-07-07 16:38:16 -04:00
- stable
2022-10-04 11:51:03 -04:00
continue-on-error: ${{ matrix.rust != '1.64.0' }} # MSRV
2021-07-07 16:38:16 -04:00
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
2021-07-07 16:38:16 -04:00
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --all-features --all-targets -- -D warnings