Rename cargo.toml to Cargo.toml #2
Workflow file for this run
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
name: linter | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
inputs: | |
commit_sha: | |
description: Git commit sha, on which, to run this workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
lint_commits: | |
name: Lint Commit Messages | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check Commit Lint | |
uses: wagoid/commitlint-github-action@v5.0.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
lint_check: | |
name: Rust - lint_${{ matrix.lint_projects }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
lint_projects: | |
- cargo_fmt_check | |
- cargo_clippy | |
- cargo_deny | |
- cargo_toml_files | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
ref: ${{ github.event.inputs.commit_sha }} | |
- name: Run lint ${{ matrix.lint_projects }} | |
run: make -f Makefile lint_${{ matrix.lint_projects }} | |