This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
Bump nicolaiunrein/cargo-get from 8ad2b01b5ae4099470f6f83551a770bbf28fd3b8 to 0aab64f5e65a891fac3d444f172debdb3fbd1bdd #48
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: lint | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: rustup toolchain install nightly | |
- name: Check | |
run: cargo check --all --all-targets | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: rustup toolchain install nightly | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Format | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: rustup toolchain install nightly | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Clippy | |
run: cargo clippy --all --all-targets -- -D warnings | |
rustdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: rustup toolchain install nightly | |
- name: Rustdoc | |
run: cargo doc --all --no-deps | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install rust | |
run: rustup toolchain install nightly | |
- name: Test | |
run: cargo test --all --all-targets |