-
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.
Merge pull request #15 from vbudovski/feature/husky
Feature/husky
- Loading branch information
Showing
13 changed files
with
524 additions
and
159 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Lint | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
unit: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Deno | ||
uses: denoland/setup-deno@v2 | ||
|
||
- name: Get pnpm store directory | ||
id: deno-cache | ||
shell: bash | ||
run: | | ||
echo "DENO_DIR=$(deno info | grep DENO_DIR | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | cut -d ':' -f 2 | xargs)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v4 | ||
name: Setup Deno cache | ||
with: | ||
path: ${{ steps.deno-cache.outputs.DENO_DIR }} | ||
key: ${{ runner.os }}-deno-cache | ||
restore-keys: | | ||
${{ runner.os }}-deno-cache | ||
- name: Biome CI | ||
id: biome-ci | ||
run: | | ||
deno task ci |
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
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 @@ | ||
deno task lint-staged |
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,10 @@ | ||
{ | ||
"tasks": { | ||
"init": "deno run --allow-env --allow-read --allow-write --allow-run npm:husky", | ||
"lint-staged": "deno run --allow-env --allow-read --allow-write --allow-sys --allow-run npm:lint-staged", | ||
"ci": "deno run --allow-env --allow-read --allow-run npm:@biomejs/biome ci", | ||
"check": "deno run --allow-env --allow-read --allow-run npm:@biomejs/biome check" | ||
}, | ||
"workspace": ["paseri-lib"], | ||
"nodeModulesDir": "auto" | ||
} |
Oops, something went wrong.