Skip to content

Commit

Permalink
Run Deno directly in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorm committed Oct 24, 2024
1 parent bf38e06 commit bddf121
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
strategy:
fail-fast: false
matrix:
deno_version: ["vx.x.x"]
deno_version: ["v2.x"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- name: "Checkout"
Expand All @@ -115,15 +115,10 @@ jobs:
uses: "denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985"
with:
deno-version: "${{ matrix.deno_version }}"
- name: "Use Node.js lts/*"
uses: "actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6"
with:
node-version: "lts/*"
cache: "npm"
- name: "Install dependencies"
run: "npm ci"
run: "deno install"
- name: "Test"
run: "npm run test:deno"
run: "deno task test:deno"

test-bun:
name: "Test on Bun ${{ matrix.bun_version }} on ${{ matrix.os }}"
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,40 +70,40 @@
"docs": "run-s docs:clean docs:compile",
"docs:clean": "rimraf ./docs/",
"docs:compile": "typedoc ./src/index.js --readme none --out ./docs/",
"lint": "run-s lint:*",
"lint": "run-s lint:\"*\"",
"lint:eslint": "eslint --max-warnings 0 ./",
"lint:prettier": "prettier --list-different ./",
"lint:tsc": "tsc --noEmit",
"format": "run-s format:*",
"format": "run-s format:\"*\"",
"format:eslint": "eslint --fix ./",
"format:prettier": "prettier --write ./",
"test": "run-s test:*",
"test:node": "run-s test:node:*",
"test:node:esm": "run-s test:node:esm:*",
"test": "run-s test:\"*\"",
"test:node": "run-s test:node:\"*\"",
"test:node:esm": "run-s test:node:esm:\"*\"",
"test:node:esm:unmin": "node ./test/node.test.mjs",
"test:node:esm:min": "node ./test/node.test.min.mjs",
"test:node:cjs": "run-s test:node:cjs:*",
"test:node:cjs": "run-s test:node:cjs:\"*\"",
"test:node:cjs:unmin": "node ./test/node.test.cjs",
"test:node:cjs:min": "node ./test/node.test.min.cjs",
"test:deno": "run-s test:deno:*",
"test:deno:esm": "run-s test:deno:esm:*",
"test:deno": "run-s --npm-path deno test:deno:\"*\"",
"test:deno:esm": "run-s --npm-path deno test:deno:esm:\"*\"",
"test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.mjs",
"test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.min.mjs",
"test:bun": "run-s test:bun:*",
"test:bun:esm": "run-s test:bun:esm:*",
"test:bun": "run-s test:bun:\"*\"",
"test:bun:esm": "run-s test:bun:esm:\"*\"",
"test:bun:esm:unmin": "bun test ./test/bun.test.mjs",
"test:bun:esm:min": "bun test ./test/bun.test.min.mjs ",
"test:browser": "run-s test:browser:*",
"test:browser:chromium": "run-s test:browser:chromium:*",
"test:browser:chromium:umd": "run-s test:browser:chromium:umd:*",
"test:browser": "run-s test:browser:\"*\"",
"test:browser:chromium": "run-s test:browser:chromium:\"*\"",
"test:browser:chromium:umd": "run-s test:browser:chromium:umd:\"*\"",
"test:browser:chromium:umd:unmin": "node ./test/browser.test.mjs chromium",
"test:browser:chromium:umd:min": "node ./test/browser.test.min.mjs chromium",
"test:browser:firefox": "run-s test:browser:firefox:*",
"test:browser:firefox:umd": "run-s test:browser:firefox:umd:*",
"test:browser:firefox": "run-s test:browser:firefox:\"*\"",
"test:browser:firefox:umd": "run-s test:browser:firefox:umd:\"*\"",
"test:browser:firefox:umd:unmin": "node ./test/browser.test.mjs firefox",
"test:browser:firefox:umd:min": "node ./test/browser.test.min.mjs firefox",
"test:browser:webkit": "run-s test:browser:webkit:*",
"test:browser:webkit:umd": "run-s test:browser:webkit:umd:*",
"test:browser:webkit": "run-s test:browser:webkit:\"*\"",
"test:browser:webkit:umd": "run-s test:browser:webkit:umd:\"*\"",
"test:browser:webkit:umd:unmin": "node ./test/browser.test.mjs webkit",
"test:browser:webkit:umd:min": "node ./test/browser.test.min.mjs webkit",
"version": "run-s all version:jsr version:git",
Expand Down

0 comments on commit bddf121

Please sign in to comment.