chore(deps): bump crate-ci/typos from 1.29.4 to 1.29.5 #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
permissions: | |
contents: read | |
on: | |
# Run on push to main branch and on pull requests | |
push: | |
branches: [main] | |
pull_request: | |
concurrency: | |
# Only run the latest workflow | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
name: check | |
jobs: | |
typos: | |
name: typos | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Check for typos | |
uses: crate-ci/[email protected] | |
conventional_commit: | |
name: conventional commit check | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# Fetch all commits to generate the changelog | |
fetch-depth: 0 | |
- name: Conventional commit check | |
uses: cocogitto/cocogitto-action@main | |
with: | |
check: true | |
conventional_commit_pr: | |
name: PR conventional commit check | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# Fetch all commits to generate the changelog | |
fetch-depth: 0 | |
# pick the pr HEAD instead of the merge commit | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Conventional commit check | |
uses: cocogitto/cocogitto-action@main | |
with: | |
check: true | |
clippy: | |
name: ${{ matrix.toolchain }} / clippy | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, beta] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install prerequisites | |
shell: bash | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install -y \ | |
libudev-dev | |
- name: cargo clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
audit: | |
name: cargo audit | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install stable rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: audit check | |
uses: actions-rs/audit-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
hack: | |
name: hack | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install prerequisites | |
shell: bash | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install -y \ | |
libudev-dev | |
- name: cargo install cargo-hack | |
uses: taiki-e/install-action@cargo-hack | |
- name: cargo hack | |
run: cargo hack --feature-powerset check |