-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
215 additions
and
24 deletions.
There are no files selected for viewing
Submodule .git-hooks
updated
4 files
+7 −1 | README.md | |
+9 −0 | hooks/deno/pre-commit | |
+9 −0 | tests/hooks/deno/pre-commit/it-should-process-supported-staged-files.sh | |
+1 −1 | version |
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,27 +1,27 @@ | ||
--- | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: setup tools | ||
uses: jdx/mise-action@v2 | ||
- name: Install devbox | ||
uses: jetify-com/devbox-install-action@v0.9.0 | ||
with: | ||
install: true | ||
cache: true | ||
enable-cache: "true" | ||
|
||
- name: check lint | ||
run: | | ||
deno lint | ||
yamllint . | ||
deno run -A npm:html-validate . | ||
- name: check deps | ||
run: devbox run -- deno task deps:check | ||
|
||
- name: check format | ||
run: |- | ||
deno fmt --check | ||
yamlfmt -dry -lint . | ||
deno run -A npm:prettier -c "./public/**/*.{html,css}" | ||
run: devbox run check:format | ||
|
||
- name: check linting | ||
run: devbox run check:lint |
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 was deleted.
Oops, something went wrong.
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,26 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json", | ||
"packages": [ | ||
"deno@1.45", | ||
"yamlfmt@latest", | ||
"yamllint@latest" | ||
], | ||
"shell": { | ||
"init_hook": [], | ||
"scripts": { | ||
"check:format": [ | ||
"set -x", | ||
"deno fmt --check", | ||
"yamlfmt -dry -lint .", | ||
"deno run -A npm:prettier -c \"./public/**/*.{html,css}\"" | ||
], | ||
"check:lint": [ | ||
"set -x", | ||
"deno lint", | ||
"yamllint .", | ||
"deno run -A npm:html-validate .", | ||
"deno run -A --no-lock npm:markdownlint-cli2 \"**/*.{md,markdown}\" \"#{.git-hooks,.devbox}\"" | ||
] | ||
} | ||
} | ||
} |
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,165 @@ | ||
{ | ||
"lockfile_version": "1", | ||
"packages": { | ||
"deno@1.45": { | ||
"last_modified": "2024-08-05T22:10:44Z", | ||
"resolved": "github:NixOS/nixpkgs/d3f42bd62aa840084563e3b93e4eab73cb0a0448#deno", | ||
"source": "devbox-search", | ||
"version": "1.45.5", | ||
"systems": { | ||
"aarch64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/lhc956f4x75mnqdpcln51qcp733jdffw-deno-1.45.5", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/lhc956f4x75mnqdpcln51qcp733jdffw-deno-1.45.5" | ||
}, | ||
"aarch64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/4k8h39z77fij812x98jn6xcjlsdy7i6d-deno-1.45.5", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/4k8h39z77fij812x98jn6xcjlsdy7i6d-deno-1.45.5" | ||
}, | ||
"x86_64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/ygwv0kgv9zynv0p4s9ay5r950hv7h77s-deno-1.45.5", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/ygwv0kgv9zynv0p4s9ay5r950hv7h77s-deno-1.45.5" | ||
}, | ||
"x86_64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/0wzx6839jkm3s7i4pki338sr1blcz7qs-deno-1.45.5", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/0wzx6839jkm3s7i4pki338sr1blcz7qs-deno-1.45.5" | ||
} | ||
} | ||
}, | ||
"yamlfmt@latest": { | ||
"last_modified": "2024-07-31T08:48:38Z", | ||
"resolved": "github:NixOS/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce#yamlfmt", | ||
"source": "devbox-search", | ||
"version": "0.13.0", | ||
"systems": { | ||
"aarch64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/v1bg20fhchpca1dh8zwbwkc2cii027ph-yamlfmt-0.13.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/v1bg20fhchpca1dh8zwbwkc2cii027ph-yamlfmt-0.13.0" | ||
}, | ||
"aarch64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/h763rgl7n9vbvgs94m4pdk559x0r3fl5-yamlfmt-0.13.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/h763rgl7n9vbvgs94m4pdk559x0r3fl5-yamlfmt-0.13.0" | ||
}, | ||
"x86_64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/ll2ha1ih2s2b2l7f9w52wz7wpm9x50jl-yamlfmt-0.13.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/ll2ha1ih2s2b2l7f9w52wz7wpm9x50jl-yamlfmt-0.13.0" | ||
}, | ||
"x86_64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/v9wdjmyxc6m9ja9cz8zy13pxdxv26pqb-yamlfmt-0.13.0", | ||
"default": true | ||
} | ||
], | ||
"store_path": "/nix/store/v9wdjmyxc6m9ja9cz8zy13pxdxv26pqb-yamlfmt-0.13.0" | ||
} | ||
} | ||
}, | ||
"yamllint@latest": { | ||
"last_modified": "2024-07-31T08:48:38Z", | ||
"resolved": "github:NixOS/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce#yamllint", | ||
"source": "devbox-search", | ||
"version": "1.35.1", | ||
"systems": { | ||
"aarch64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/d4z83ibmf9jyqfn0qj6w8c8x545prd3h-python3.12-yamllint-1.35.1", | ||
"default": true | ||
}, | ||
{ | ||
"name": "dist", | ||
"path": "/nix/store/gkxlr7xggg2hni37fbqcicmfdn23m8w0-python3.12-yamllint-1.35.1-dist" | ||
} | ||
], | ||
"store_path": "/nix/store/d4z83ibmf9jyqfn0qj6w8c8x545prd3h-python3.12-yamllint-1.35.1" | ||
}, | ||
"aarch64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/4sba4q501m6p1a2312z2rvmnavcr3bq5-python3.12-yamllint-1.35.1", | ||
"default": true | ||
}, | ||
{ | ||
"name": "dist", | ||
"path": "/nix/store/aw2qn4j1apkqzyk7bgr81n030xbjwybw-python3.12-yamllint-1.35.1-dist" | ||
} | ||
], | ||
"store_path": "/nix/store/4sba4q501m6p1a2312z2rvmnavcr3bq5-python3.12-yamllint-1.35.1" | ||
}, | ||
"x86_64-darwin": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/8fcfsdn0xvpymsfc49j2kyf6n9pypxcf-python3.12-yamllint-1.35.1", | ||
"default": true | ||
}, | ||
{ | ||
"name": "dist", | ||
"path": "/nix/store/ms43j0fpks7vc8rkf7plv9czd84d637n-python3.12-yamllint-1.35.1-dist" | ||
} | ||
], | ||
"store_path": "/nix/store/8fcfsdn0xvpymsfc49j2kyf6n9pypxcf-python3.12-yamllint-1.35.1" | ||
}, | ||
"x86_64-linux": { | ||
"outputs": [ | ||
{ | ||
"name": "out", | ||
"path": "/nix/store/b3j303s50x70y3gl4f1h8613vw0lzi87-python3.12-yamllint-1.35.1", | ||
"default": true | ||
}, | ||
{ | ||
"name": "dist", | ||
"path": "/nix/store/6bk0qspkrqm2a4pv0h0j4n4ls9hwd9vk-python3.12-yamllint-1.35.1-dist" | ||
} | ||
], | ||
"store_path": "/nix/store/b3j303s50x70y3gl4f1h8613vw0lzi87-python3.12-yamllint-1.35.1" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,4 +1,5 @@ | ||
<!doctype html> | ||
<!-- prettier-ignore --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|