Skip to content

Commit

Permalink
ci(actions): bump denoland/setup-deno from 1 to 2 (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: EdJoPaTo <github@edjopato.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: EdJoPaTo <rfc-conform-git-commit-email@funny-long-domain-label-everyone-hates-as-it-is-too-long.edjopato.de>
  • Loading branch information
dependabot[bot] and EdJoPaTo authored Nov 1, 2024
1 parent 33bed86 commit 4d193e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,41 @@ name: Deno
on:
push:
pull_request:
workflow_dispatch:

jobs:
denofmt-and-lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno lint
- run: deno fmt --check

test:
check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache *.ts
- run: deno check *.ts
- run: deno test --allow-read

test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache *.ts
- run: deno test --no-check --allow-read
20 changes: 11 additions & 9 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
// https://deno.land/manual/getting_started/configuration_file
"lock": false,
"tasks": {},
// https://deno.land/manual/advanced/typescript/configuration
// https://www.typescriptlang.org/tsconfig/
"compilerOptions": {
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": true
},
"fmt": {
"exclude": ["README.md"],
"proseWrap": "preserve",
"useTabs": true
},
"lint": {
"rules": {
// https://lint.deno.land/?all=on
Expand All @@ -23,12 +24,13 @@
"eqeqeq",
"explicit-module-boundary-types",
"no-await-in-loop",
"no-eval"
"no-eval",
"no-non-null-asserted-optional-chain",
"no-non-null-assertion",
"no-slow-types",
"no-sparse-arrays",
"verbatim-module-syntax"
]
}
},
"fmt": {
"exclude": ["README.md"],
"useTabs": true
}
}

0 comments on commit 4d193e2

Please sign in to comment.