From 801ce4cd3453d4109121ae8be472f5a9c3d700eb Mon Sep 17 00:00:00 2001 From: wucke13 Date: Wed, 5 Apr 2023 17:24:09 +0200 Subject: [PATCH] add check for broken documentation to qc workflow --- .github/workflows/qc.yaml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/qc.yaml b/.github/workflows/qc.yaml index 7d72239..6846078 100644 --- a/.github/workflows/qc.yaml +++ b/.github/workflows/qc.yaml @@ -12,15 +12,23 @@ jobs: prettier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - 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@v2 + - uses: actions/checkout@v3 - uses: actions/cache@v3 with: path: | @@ -31,17 +39,27 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: rustup component add clippy - - name: Install xmllint + - 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-audit: + cargo-doc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/audit-check@v1 + - uses: actions/checkout@v3 + - uses: actions/cache@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + 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 + - run: RUSTDOCFLAGS="-D warnings" cargo doc --document-private-items