Skip to content

Commit

Permalink
feat: add deno cache to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Jul 19, 2024
1 parent f176473 commit 7b935a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ on:
branches:
- main

env:
DENO_DIR: deno_cache

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Cache Dependencies
uses: actions/cache@v2
with:
path: ${{ env.DENO_DIR }}
key: ${{ hashFiles('deno.lock') }}

- name: Setup Deno
uses: maximousblk/setup-deno@v2

Expand Down
9 changes: 9 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
"fmt": {
"lineWidth": 120
},
"publish": {
"exclude": [
".eslint",
".github",
".vscode",
".gitignore",
"tests"
]
},
"tasks": {
"lint": "deno lint && npx eslint -c .eslint/eslint.config.mjs .",
"test": "export ENVIRONMENT=testing && deno test --allow-all --unstable-ffi"
Expand Down

0 comments on commit 7b935a8

Please sign in to comment.