Skip to content

Commit

Permalink
Add new Deno task definition and cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Dec 6, 2023
1 parent 1e36587 commit e098101
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
id: cache-nodemodules
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.OS }}-node_modules-4-${{ hashFiles('./package-lock.json', '.github/workflows/build_and_test.yml') }}
path: |
- ./node_modules
- ~/.deno
key: ${{ runner.OS }}-node_modules-deno-cache-4-${{ hashFiles('./package-lock.json', './deno-runtime/deno.lock', '.github/workflows/build_and_test.yml') }}

- name: npm install
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
Expand Down
3 changes: 3 additions & 0 deletions deno-runtime/deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"astring": "npm:[email protected]",
"jsonrpc-lite": "npm:[email protected]",
"uuid": "npm:[email protected]",
},
"tasks": {
"test": "deno test --no-check --allow-read=../"
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"go-publish-beta": "gulp publish-beta",
"go-publish-alpha": "gulp publish-alpha",
"test:node": "NODE_ENV=test ts-node ./tests/runner.ts",
"test:deno": "cd deno-runtime && deno test --no-check --allow-read",
"gen-doc": "typedoc"
"test:deno": "cd deno-runtime && deno task test",
"gen-doc": "typedoc",
"postinstall": "cd deno-runtime && deno cache main.ts && deno test --no-check --no-run"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit e098101

Please sign in to comment.