Remove unmaintained github action #84
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: Check and Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Cargo check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: rustup update stable && rustup default stable | |
- run: cargo --version --verbose && rustc --version | |
- run: cargo check | |
- run: cargo check --all-features | |
clippy: | |
name: Lint with Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: rustup update stable && rustup default stable | |
- run: rustup component add clippy | |
- run: cargo --version --verbose && cargo clippy -- --version | |
- run: cargo clippy --all-features -- -D warnings | |
format: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: rustup update stable && rustup default stable | |
- run: rustup component add rustfmt | |
- run: cargo --version --verbose && cargo fmt -- --version | |
- run: cargo fmt --all -- --check | |
doc: | |
name: Lint Documentation | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: -D warnings | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: cargo --version --verbose && rustc --version | |
- name: Check documentation | |
run: cargo doc --no-deps --all-features --document-private-items | |
cargo-deny: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
# Prevent sudden announcement of a new advisory from failing ci: | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
command: check ${{ matrix.checks }} |