-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(port-cache): move to deno 2 and refactor usages
- Loading branch information
1 parent
ad27326
commit 376f99a
Showing
11 changed files
with
81 additions
and
51 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 |
---|---|---|
|
@@ -19,20 +19,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
deno-version: [1.x] | ||
deno-version: [2.x] | ||
|
||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: ${{ matrix.deno-version }} | ||
|
||
- name: ⚡ Run Tests | ||
working-directory: packages/port-cache | ||
run: | | ||
cd packages/port-cache | ||
deno task test | ||
env: | ||
CI: true | ||
|
@@ -41,15 +41,23 @@ jobs: | |
if: startsWith(github.ref, 'refs/tags/hyper-port-cache@') | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v1.x | ||
deno-version: v2.x | ||
|
||
- name: ✨ Publish to JSR | ||
working-directory: packages/port-cache | ||
run: | | ||
deno publish --allow-slow-types | ||
# - name: 🥚 Setup Eggs CLI | ||
# run: | | ||
# deno install -A -f --unstable --no-check https://x.nest.land/[email protected]/eggs.ts | ||
|
@@ -58,5 +66,5 @@ jobs: | |
|
||
# - name: 📘 Publish to Nest | ||
# run: | | ||
# cd packages/port-cache | ||
# cd packages/port-data | ||
# eggs publish --yes |
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,34 @@ | ||
{ | ||
"name": "@hyper63/port-cache", | ||
"version": "2.0.0", | ||
"exports": "./mod.ts", | ||
"tasks": { | ||
"test": "deno lint && deno fmt --check && deno test --no-check", | ||
"cache": "deno install --entrypoint mod.ts" | ||
}, | ||
"imports": { | ||
"zod": "npm:[email protected]", | ||
"@std/assert": "jsr:@std/assert@1" | ||
}, | ||
"fmt": { | ||
"include": [ | ||
"./" | ||
], | ||
"lineWidth": 100, | ||
"singleQuote": true, | ||
"semiColons": false | ||
}, | ||
"lint": { | ||
"rules": { | ||
"exclude": ["no-slow-types"] | ||
} | ||
}, | ||
"publish": { | ||
"include": [ | ||
"*" | ||
], | ||
"exclude": [ | ||
"**/*.test.ts" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"$schema": "https://x.nest.land/[email protected]/src/schema.json", | ||
"name": "hyper-port-cache", | ||
"entry": "./mod.ts", | ||
"description": "Hyper service framework port for Cache adapters", | ||
"description": "Port for the Cache Service in the hyper Service Framework", | ||
"homepage": "https://github.com/hyper63/hyper", | ||
"repo": "https://github.com/hyper63/hyper", | ||
"version": "2.0.0", | ||
|
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