-
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.
- Loading branch information
Showing
3 changed files
with
27 additions
and
24 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
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,10 @@ | ||
name: udd | ||
# ============================================================================= | ||
# File : molt.yml | ||
# Author : yukimemi | ||
# Last Change : 2024/07/06 21:31:40. | ||
# ============================================================================= | ||
|
||
name: molt | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -12,8 +18,6 @@ jobs: | |
update: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
env: | ||
GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}" | ||
|
||
steps: | ||
- name: Generate app token | ||
|
@@ -36,14 +40,14 @@ jobs: | |
with: | ||
deno-version: v1.x | ||
|
||
- name: Update dependencies with udd | ||
id: run-deno-udd | ||
- name: Update dependencies with molt | ||
id: run-deno-molt | ||
env: | ||
NO_COLOR: true | ||
run: | | ||
{ | ||
echo 'UDD_RESULT<<EOF' | ||
deno run --allow-all https://deno.land/x/udd/main.ts $(find . -type f | grep -E ".*\.([mc]?(ts|js)|(ts|js)x?)$" -) | ||
echo 'MOLT_RESULT<<EOF' | ||
deno task update:write | ||
echo EOF | ||
} >> $GITHUB_OUTPUT | ||
|
@@ -61,11 +65,11 @@ jobs: | |
<details><summary>Details</summary><div> | ||
``` | ||
${{ steps.run-deno-udd.outputs.UDD_RESULT }} | ||
${{ steps.run-deno-molt.outputs.MOLT_RESULT }} | ||
``` | ||
</div></details> | ||
branch: udd-update | ||
branch: molt-update | ||
labels: automerge | ||
author: GitHub <[email protected]> | ||
delete-branch: true |
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,8 +1,4 @@ | ||
{ | ||
"lint-staged": { | ||
"*": "deno lint && deno fmt", | ||
"deno.jsonc": "deno task setup-hooks" | ||
}, | ||
"tasks": { | ||
// general permissions | ||
"run": "deno run --allow-env --allow-read --allow-net", | ||
|
@@ -11,31 +7,31 @@ | |
"main": "deno task run main.ts", | ||
"start": "deno task run --watch server.ts", | ||
// development | ||
"test": "deno test --allow-env --allow-read --allow-net --allow-none --unstable-kv", | ||
"test": "deno test --allow-env --allow-read --allow-net --allow-none", | ||
"cov": "deno task test --coverage=cov_profile; deno coverage cov_profile", | ||
"lint": "deno lint --ignore=cov_profile", | ||
"fmt": "deno fmt --ignore=cov_profile", | ||
"check": "deno check --unstable-kv ./**/*.ts", | ||
"check": "deno check ./**/*.ts", | ||
"ci": "deno task check && deno task lint && deno task fmt --check && deno task test", | ||
"deps": "deno run --allow-read --allow-write --allow-net --allow-run https://deno.land/x/[email protected]/main.ts --test='deno task test' deno.jsonc ./**.*.ts", | ||
// git hooks | ||
"setup-hooks": "deno run --allow-read --allow-run https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/setup-hooks.ts", | ||
"pre-commit": "deno task doc && deno run --allow-read --allow-env --allow-run --allow-write https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/lint-staged.ts", | ||
"pre-push": "deno task ci" | ||
// molt | ||
"update": "deno run --allow-env --allow-read --allow-write --allow-run --allow-net jsr:@molt/cli ./**/*.ts", | ||
"update:write": "deno task -q update --write", | ||
"update:commit": "deno task -q update --commit --pre-commit=fmt,lint" | ||
}, | ||
"fmt": { | ||
"useTabs": false, | ||
"lineWidth": 100, | ||
"indentWidth": 2, | ||
"singleQuote": false, | ||
"include": [ | ||
"denops" | ||
] | ||
"include": ["denops"] | ||
}, | ||
"lint": { | ||
"include": [ | ||
"denops" | ||
] | ||
"include": ["denops"] | ||
}, | ||
"lock": false | ||
} |