Skip to content

Bump actions/checkout from 3.0.2 to 4.1.2 #27

Bump actions/checkout from 3.0.2 to 4.1.2

Bump actions/checkout from 3.0.2 to 4.1.2 #27

Workflow file for this run

name: Rust PR
on:
pull_request: {}
jobs:
## Required builds
# Ensures we don't take unintended dependencies.
audit:
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: EmbarkStudios/cargo-deny-action@b655a95dbfd6f1dacd48f7e869cb37cf4f03a6d9
with:
command: check bans licenses sources
# Prevent sudden announcement of a new advisory from failing Ci.
advisories:
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: EmbarkStudios/cargo-deny-action@b655a95dbfd6f1dacd48f7e869cb37cf4f03a6d9
with:
command: check advisories
# Linting
clippy:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: docker://rust:1.52.1-buster
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: rustup component add clippy
- run: cargo clippy --all-targets
# Enforce automated formatting.
fmt:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: docker://rust:1.52.1-buster
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: rustup component add rustfmt
- run: cargo fmt -- --check
# Run all tests.
test:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: cargo test