Skip to content

Commit

Permalink
Add pre-commit job (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Aug 1, 2024
1 parent 0c6a48f commit c344c0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ permissions:
actions: read

jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
auto-commit: "true"

build-test:
runs-on: ubuntu-latest
needs: pre-commit
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repos:
# General hooks section
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
Expand All @@ -12,6 +12,6 @@ repos:
args: ["--fix=lf"]
- id: end-of-file-fixer
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.14.3
rev: 0.29.1
hooks:
- id: check-github-workflows

0 comments on commit c344c0c

Please sign in to comment.