-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implements gha doc, yamlfmt, yamllint and global-lint
- Loading branch information
1 parent
41b7d92
commit eea84b8
Showing
3 changed files
with
85 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
--- | ||
# desc: lint sanity check | ||
name: lint | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: Install tooling using asdf | ||
uses: asdf-vm/actions/install@05e0d2ed97b598bfce82fd30daf324ae0c4570e6 # v3 | ||
|
||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | ||
lint: | ||
uses: camunda/infraex-common-config/.github/workflows/lint-global.yml@feature/auto-update-renovate-doc | ||
# TODO: pin the version on main | ||
secrets: inherit |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
document-start: | ||
level: error | ||
comments: | ||
level: error | ||
min-spaces-from-content: 1 | ||
comments-indentation: | ||
level: error | ||
line-length: | ||
max: 175 | ||
truthy: | ||
# prevent false positives on Github Actions workflow files with `on`, | ||
# see https://github.com/adrienverge/yamllint/issues/158 | ||
check-keys: false |