Skip to content

Commit

Permalink
add lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Oct 23, 2024
1 parent f8cd1d4 commit b6ba8c0
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"rules": {
"type-enum": [
2,
"always",
[
"chore",
"ci",
"deps",
"feat",
"fix",
"patch",
"style"
]
],
"subject-empty": [
2,
"never"
],
"type-case": [
2,
"always",
"lower-case"
],
"subject-case": [
0
],
"type-empty": [
2,
"never"
],
"scope-case": [
2,
"always",
"lower-case"
],
"scope-enum": [
0
],
"header-max-length": [
2,
"always",
120
]
}
}
19 changes: 19 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint

on:
# Manual Trigger
workflow_dispatch: {}

# Run on any PR
pull_request: {}

jobs:
actionlint:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-actionlint.yaml@155cb0eb3f146478d30884e385490eb28ce6fd7c # v3.4.21
secrets: inherit

commitlint:
uses: mirceanton/reusable-workflows/.github/workflows/reusable-commitlint.yaml@155cb0eb3f146478d30884e385490eb28ce6fd7c # v3.4.21
secrets: inherit

0 comments on commit b6ba8c0

Please sign in to comment.