Skip to content

Commit

Permalink
ci: add conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGw committed May 25, 2024
1 parent 5d62e97 commit 23f7d57
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2

- name: Setup conventional commits
run: bash ./scripts/conventional-commits
- uses: pre-commit/[email protected]
with:
extra_args: --all-files --verbose
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea/
cobertura.xml
tarpaulin-report.html
commitlint.config.js
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ alias cov:= coverage
rm -rf target dist cobertura.xml

@set-hooks:
bash ./scripts/conventional-commits
bash ./scripts/pre-commit
bash ./scripts/pre-push

Expand Down
3 changes: 3 additions & 0 deletions scripts/conventional-commits
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo "module.exports = {
extends: ['@commitlint/config-conventional']
}" > commitlint.config.js
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ mod tests {

#[test]
fn test_aes256_ctr32_encryption_decryption() {
// Test data
let key = [0u8; 32];
let nonce = [0u8; 12];
let init_ctr = 0;
Expand Down

0 comments on commit 23f7d57

Please sign in to comment.