Skip to content

Remove remaining GitHub actions FIXMEs. #9

Remove remaining GitHub actions FIXMEs.

Remove remaining GitHub actions FIXMEs. #9

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- '**'
name: CI
jobs:
audit:
name: Audit
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: bp3d-actions/audit-check@9c23bd47e5e7b15b824739e0862cb878a52cc211
with:
token: ${{ secrets.GITHUB_TOKEN }}
fmt:
name: Rustfmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt
- run: cargo fmt --all -- --check
docs_and_spell_check:
name: Docs and Spell Check
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUSTDOCFLAGS: "-Dwarnings"
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Check spelling
uses: crate-ci/typos@master
- run: cargo doc --no-deps
clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy
- run: cargo clippy --workspace --all-features -- -D warnings
coverage:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: 'Collect coverage'
run: ./coverage.sh
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
files: ./target/coverage/lcov.info
build_and_test_linux:
name: Build and Test (Linux)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- name: 'Build and test'
run: cargo nextest run --workspace --all-features
- name: 'Doc tests'
run: cargo test --doc
build_and_test_windows:
name: Build and Test (Windows)
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Prepare symlink configuration
run: git config --global core.symlinks true
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- name: 'Build and test'
run: cargo nextest run --workspace --all-features
- name: 'Doc tests'
run: cargo test --doc