Skip to content

log metrics

log metrics #64

Workflow file for this run

name: Check
permissions:
contents: read
env:
RUST_VERSION: "1.65.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