mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-01-04 00:57:19 -08:00
- add prettier for yaml and md files - add `cargo-audit` job - add `cargo-clippy` job - fix missing references in readme.md This includes a reformat of both `readme.md` files
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Quality Control
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: read
|
|
|
|
jobs:
|
|
prettier:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actionsx/prettier@v2
|
|
with:
|
|
args: --check .
|
|
|
|
cargo-clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 xmllint
|
|
run: sudo apt-get install -y libsodium-dev
|
|
- uses: actions-rs/clippy-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --all-features
|
|
|
|
cargo-audit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions-rs/audit-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|