Update rustls-native-certs requirement from 0.6 to 0.7 #200
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 | |
on: [push] | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Audit | |
run: | | |
cargo audit -D warnings | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run unit tests | |
run: | | |
cargo test --workspace --all-targets --all-features | |
- name: Run doc tests | |
run: | | |
cargo test --workspace --doc --all-features | |
msrv: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: "1.70" | |
- name: Run unit tests | |
run: | | |
cargo test --workspace --all-targets --all-features | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run Clippy | |
run: | | |
cargo clippy --workspace --all-targets --all-features -- -D warnings | |
- name: Run Rustdoc | |
run: | | |
cargo doc --no-deps --workspace --all-features | |
env: | |
RUSTDOCFLAGS: -D warnings | |
docs: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Generate Docs | |
run: | | |
rustup install nightly --profile minimal | |
cargo +nightly doc --no-deps --workspace --all-features | |
env: | |
RUSTDOCFLAGS: --cfg docsrs | |
- name: Deploy Docs | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages | |
folder: target/doc/ | |
git-config-name: kl-botsu | |
git-config-email: [email protected] | |
target-folder: /main/ | |
clean: true | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install code coverage requirements | |
run: | | |
rustup toolchain install nightly --profile minimal --component llvm-tools-preview --allow-downgrade | |
# grcov uses "llvm-tools-preview" of the current default toolchain | |
rustup default nightly | |
# Current versions are causing "[ERROR] Execution count overflow detected." | |
# https://github.com/mozilla/grcov/issues/555 | |
# curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf - | |
curl -L https://github.com/mozilla/grcov/releases/download/v0.6.1/grcov-linux-x86_64.tar.bz2 | tar jxf - | |
- name: Run code coverage | |
run: | | |
LLVM_PROFILE_FILE="profraw/%m.profraw" cargo test --workspace --all-targets --all-features | |
./grcov profraw -b target/debug -s . -t html --branch --ignore-not-existing -o coverage | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-Zinstrument-coverage" | |
RUSTDOCFLAGS: "-Cpanic=abort" | |
- name: Deploy Coverage | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages | |
folder: coverage/ | |
git-config-name: kl-botsu | |
git-config-email: [email protected] | |
target-folder: /coverage/ | |
clean: true | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Rust Formatting | |
continue-on-error: true | |
run: | | |
rustup toolchain install nightly --profile minimal --component rustfmt --allow-downgrade | |
cargo +nightly fmt -- --check | |
- name: Prettier | |
run: | | |
sudo npm install -g prettier prettier-plugin-toml | |
npx prettier -l . |