Skip to content

Commit

Permalink
Update git-hooks to v2.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com>
  • Loading branch information
M4RC3L05 committed Jul 16, 2024
1 parent c486c67 commit 960adab
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .git-hooks
Submodule .git-hooks updated 32 files
+1 −0 .githooksrc
+31 −0 .github/workflows/ci.yaml
+1 −0 .gitignore
+1 −0 .shellcheckrc
+4 −0 .tool-versions
+10 −0 .yamlfmt.yaml
+37 −0 hooks/_utils.sh
+23 −0 hooks/deno/pre-commit
+29 −12 hooks/pre-commit
+23 −0 hooks/sh/pre-commit
+14 −0 hooks/sql/pre-commit
+18 −0 hooks/yaml/pre-commit
+23 −0 tests/Dockerfile
+24 −0 tests/hooks/deno/pre-commit/it-should-do-nothing-if-no-valid-staged-files-exists.sh
+27 −0 tests/hooks/deno/pre-commit/it-should-error-on-first-error.sh
+39 −0 tests/hooks/deno/pre-commit/it-should-process-supported-staged-files.sh
+21 −0 tests/hooks/pre-commit/it-should-do-nothing-if-no-hooks-was-configured.sh
+19 −0 tests/hooks/pre-commit/it-should-do-nothing-if-no-stage-files-exists.sh
+19 −0 tests/hooks/pre-commit/it-should-error-on-missing-config-file.sh
+27 −0 tests/hooks/pre-commit/it-should-skip-unknown-pre-commit-hooks.sh
+29 −0 tests/hooks/pre-commit/it-should-stop-executing-if-any-hooks-fails.sh
+29 −0 tests/hooks/sh/pre-commit/it-should-do-nothing-if-no-valid-staged-files-exists.sh
+32 −0 tests/hooks/sh/pre-commit/it-should-error-on-first-error.sh
+35 −0 tests/hooks/sh/pre-commit/it-should-process-supported-staged-files.sh
+24 −0 tests/hooks/sql/pre-commit/it-should-do-nothing-if-no-valid-staged-files-exists.sh
+27 −0 tests/hooks/sql/pre-commit/it-should-process-supported-staged-files.sh
+27 −0 tests/hooks/yaml/pre-commit/it-should-do-nothing-if-no-valid-staged-files-exists.sh
+30 −0 tests/hooks/yaml/pre-commit/it-should-error-on-first-error.sh
+33 −0 tests/hooks/yaml/pre-commit/it-should-process-supported-staged-files.sh
+129 −0 tests/run
+93 −0 tests/setup.sh
+1 −1 version
1 change: 1 addition & 0 deletions .githooksrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HOOKS="deno yaml"
23 changes: 16 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on: [push, pull_request]

Check warning on line 4 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / ci

4:1 [truthy] truthy value should be one of [false, true]
Expand All @@ -9,16 +10,24 @@ jobs:
- name: clone repository
uses: actions/checkout@v4

- name: install deno
uses: denoland/setup-deno@v1
- name: setup tools
uses: jdx/mise-action@v2
with:
deno-version: 1.X
install: true
cache: true

- name: check format
run: deno fmt --check
- name: check lockfile
run: deno task deps:check

- name: check lint
run: |
deno lint
yamllint .
- name: check linting
run: deno lint
- name: check format
run: |-
deno fmt --check
yamlfmt -dry -lint .
- name: run tests
run: deno test --allow-read
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Publish
on:

Check warning on line 3 in .github/workflows/publish.yaml

View workflow job for this annotation

GitHub Actions / ci

3:1 [truthy] truthy value should be one of [false, true]
push:
Expand Down
4 changes: 3 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
deno 1.45
deno 1.45
yamlfmt 0.13.0
yamllint 1.35.1
10 changes: 10 additions & 0 deletions .yamlfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
formatter:
type: basic
include_document_start: true
retain_line_breaks_single: true
trim_trailing_whitespace: true
eof_newline: true
line_ending: lf
max_line_length: 80
pad_line_comments: 1

0 comments on commit 960adab

Please sign in to comment.