Skip to content

Commit

Permalink
Improve workflows (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-karpenko authored Feb 15, 2025
1 parent 9dc204e commit 5bbc27e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
- main
paths:
- "**/Cargo.toml"
- "**/Cargo.lock"
pull_request:

jobs:
security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v2
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-case-conflict
- id: detect-private-key
- id: detect-aws-credentials

- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false

- id: cargo-check
name: cargo check
entry: cargo check
language: system
types: [rust]
pass_filenames: false

0 comments on commit 5bbc27e

Please sign in to comment.