Skip to content

Commit

Permalink
fix: pre-commit job
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohe-Am committed Dec 25, 2024
1 parent dbcd420 commit d595dec
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 697 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
# run ghjk once to avoid trigger file changes when
# pre commit runs ghjk. We'll always see changes
# to lock.json since GITHUB_TOKEN is different
# in the CI
- run: deno run --unstable -A main.ts print config
- run: deno task self print config
- uses: pre-commit/[email protected]
env:
SKIP: ghjk-resolve
Expand All @@ -52,6 +53,7 @@ jobs:
# - os: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Cache deno dir
uses: actions/cache@v4
with:
Expand All @@ -71,6 +73,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- uses: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc
with:
installer-url: ./install.ts
Expand Down
7 changes: 0 additions & 7 deletions ghjk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ task(
"./.github/workflows/*.yml": [
[/(DENO_VERSION: ").*(")/, DENO_VERSION],
],
"./host/mod.ts": [
[/(GHJK_VERSION = ").*(")/, GHJK_VERSION],
],
"./tests/test.Dockerfile": [
[/(ARG DENO_VERSION=).*()/, DENO_VERSION],
[/(ARG RUST_VERSION=).*()/, RUST_VERSION],
],
"./docs/*.md": [
[
/(.*\/metatypedev\/ghjk\/v)[^/]*(\/.*)/,
Expand Down
Loading

0 comments on commit d595dec

Please sign in to comment.