Skip to content

Commit

Permalink
⚡ Use molt instead of udd.
Browse files Browse the repository at this point in the history
  • Loading branch information
yukimemi committed Jul 6, 2024
1 parent c16e6e5 commit 8353349
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# =============================================================================
# File : automerge.yml
# Author : yukimemi
# Last Change : 2024/07/06 21:32:33.
# =============================================================================

name: automerge

on:
Expand All @@ -9,9 +15,6 @@ on:
jobs:
automerge:
runs-on: ubuntu-latest
env:
GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}"

steps:
- name: Setup repo
uses: actions/checkout@v3
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/udd.yml → .github/workflows/molt.yml
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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
20 changes: 8 additions & 12 deletions deno.jsonc
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",
Expand All @@ -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
}

0 comments on commit 8353349

Please sign in to comment.