name: hk
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 6 * * 1"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with:
fetch-depth: 0
persist-credentials: false
- name: Install tools
uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c - name: Run checks
if: github.event_name != 'schedule'
run: hk check --all --slow
- name: Audit Rust dependencies
if: github.event_name == 'schedule'
run: cargo-deny --locked --workspace check advisories