Skip to content

Commit

Permalink
chore(github): add lint step to the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Dec 12, 2023
1 parent 2f6fce8 commit 96c196a
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/check.yml
Expand Up @@ -110,3 +110,58 @@ jobs:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
run: cargo check

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
- name: Checkout the repository
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check licenses sources

- name: Run cargo-audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run committed
uses: crate-ci/committed@master
with:
args: "-vv"
commits: "HEAD"

- name: Run lychee
uses: lycheeverse/lychee-action@v1
with:
args: -v *.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run codespell
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
check_hidden: true
ignore_words_file: .codespellignore
skip: target,.git,_typos.toml

0 comments on commit 96c196a

Please sign in to comment.