Skip to content

chore(deps): bump actions/upload-pages-artifact from 3.0.1 to 4.0.0 #21

chore(deps): bump actions/upload-pages-artifact from 3.0.1 to 4.0.0

chore(deps): bump actions/upload-pages-artifact from 3.0.1 to 4.0.0 #21

Workflow file for this run

---
name: Code Quality Metrics
"on":
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
jobs:
metrics:
name: Collect Code Quality Metrics
runs-on: ubuntu-latest
steps:
- name: Checkout repository
# v6.0.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install Rust toolchain
# master
uses: dtolnay/rust-toolchain@efa25f7f19611383d5b0ccf2d1c8914531636bf9
with:
toolchain: stable
- name: Install analysis tools
# v2.67.18
uses: taiki-e/install-action@cfdb446e391c69574ebc316dfb7d7849ec12b940
with:
tool: cargo-geiger,cargo-bloat
- name: Cache cargo registry
# v5.0.3
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-metrics-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-metrics-
- name: Scan for unsafe code
run: |
echo "## Unsafe Code Analysis" > metrics-report.md
echo '```' >> metrics-report.md
cargo geiger --all-features >> metrics-report.md || true
echo '```' >> metrics-report.md
echo "" >> metrics-report.md
- name: Analyze binary size
run: |
cargo build --release
echo "## Binary Size Analysis" >> metrics-report.md
echo '```' >> metrics-report.md
cargo bloat --release --crates >> metrics-report.md
echo '```' >> metrics-report.md
echo "" >> metrics-report.md
- name: Check documentation coverage
run: |
echo "## Documentation Coverage" >> metrics-report.md
echo '```' >> metrics-report.md
cargo doc --no-deps --all-features 2>&1 | grep -E "Documenting|warning" >> metrics-report.md || true
echo '```' >> metrics-report.md
- name: Upload metrics report
# v4.6.2
uses: actions/upload-artifact@47309c993abb98030a35d55ef7ff34b7fa1074b5
with:
name: code-quality-metrics
path: metrics-report.md
retention-days: 30