Skip to content

Commit

Permalink
commit lint should fail
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJithil committed Nov 4, 2023
1 parent 94156e3 commit c70866b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ permissions:

jobs:
build-tarball:
needs: linters
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ permissions:

jobs:
lint-addon-docs:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -37,6 +38,7 @@ jobs:
- name: Lint addon docs
run: NODE=$(command -v node) make lint-addon-docs
lint-cpp:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -52,6 +54,7 @@ jobs:
- name: Lint C/C++ files
run: make lint-cpp
format-cpp:
needs: lint-cpp
if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -90,6 +93,7 @@ jobs:
exit "$EXIT_CODE"
fi
lint-js-and-md:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -115,6 +119,7 @@ jobs:
env:
NODE_RELEASED_VERSIONS: ${{ steps.get-released-versions.outputs.NODE_RELEASED_VERSIONS }}
lint-py:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -132,6 +137,7 @@ jobs:
make lint-py-build
make lint-py
lint-yaml:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -150,6 +156,7 @@ jobs:
make lint-yaml
lint-sh:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -160,6 +167,7 @@ jobs:
- name: Lint Shell scripts
run: tools/lint-sh.mjs .
lint-codeowners:
needs: commit-lint
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
Expand All @@ -170,6 +178,7 @@ jobs:
with:
checks: files,duppatterns
lint-pr-url:
needs: commit-lint
if: ${{ github.event.pull_request }}
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c70866b

Please sign in to comment.