diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cee89c0..0f1a4e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/deno.json b/deno.json index fa21897..216e95c 100644 --- a/deno.json +++ b/deno.json @@ -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"