Skip to content

remove clone metrics #71

remove clone metrics

remove clone metrics #71

Workflow file for this run

name: Check
permissions:
contents: read
env:
RUST_VERSION: "1.70.0"
on:
pull_request:
push:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
name: Format
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo resources
uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
name: Clippy
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
components: clippy
- name: Cache cargo resources
uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
- run: cargo clippy
audit:
runs-on: ubuntu-latest
name: Audit
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Cache cargo resources
uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
- run: cargo audit
check:
runs-on: ubuntu-latest
name: Check
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Cache cargo resources
uses: Swatinem/rust-cache@v2
with:
shared-key: deps
cache-on-failure: true
- run: cargo check --workspace