mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-07-28 22:30:51 -07:00
https://github.com/rosenpass/rosenpass/issues/62 https://github.com/rust-lang/rust/issues/108378
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: QC
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: read
|
|
|
|
jobs:
|
|
prettier:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actionsx/prettier@v2
|
|
with:
|
|
args: --check .
|
|
|
|
cargo-audit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions-rs/audit-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
cargo-clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- run: rustup component add clippy
|
|
- name: Install libsodium
|
|
run: sudo apt-get install -y libsodium-dev
|
|
- uses: actions-rs/clippy-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --all-features
|
|
|
|
cargo-doc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- run: rustup component add clippy
|
|
- name: Install libsodium
|
|
run: sudo apt-get install -y libsodium-dev
|
|
# `--no-deps` used as a workaround for a rust compiler bug. See:
|
|
# - https://github.com/rosenpass/rosenpass/issues/62
|
|
# - https://github.com/rust-lang/rust/issues/108378
|
|
- run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items
|