From b6825473d9fa256cd09a9cd69690b8b09ea7c080 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Thu, 17 Oct 2024 22:04:31 +0300 Subject: [PATCH] ci: add deno to test matrix --- .github/workflows/ci.yaml | 19 +++++++++++++++++++ src/test/smoke/invoke.test.mjs | 2 +- src/test/ts/x.test.ts | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2669995..87c3826 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -116,6 +116,7 @@ jobs: smoke-bun: runs-on: ubuntu-latest + name: Smoke Bun needs: build steps: - uses: actions/checkout@v4 @@ -127,3 +128,21 @@ jobs: - run: | bun ./src/test/smoke/invoke.test.cjs bun ./src/test/smoke/invoke.test.mjs + + smoke-deno: + runs-on: ubuntu-latest + name: Smoke Deno ${{ matrix.deno-version }} + needs: build + strategy: + matrix: + deno-version: [ v1.x, v2.x ] + steps: + - uses: actions/checkout@v4 + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: ${{ matrix.deno-version }} + - uses: actions/download-artifact@v4 + with: + name: build + - run: deno test --allow-read --allow-sys --allow-env --allow-run ./src/test/smoke/invoke.test.mjs diff --git a/src/test/smoke/invoke.test.mjs b/src/test/smoke/invoke.test.mjs index d1b75c1..1fed14b 100644 --- a/src/test/smoke/invoke.test.mjs +++ b/src/test/smoke/invoke.test.mjs @@ -1,4 +1,4 @@ -import assert from 'assert' +import assert from 'node:assert' import { zurk, $ } from '../../../target/esm/index.mjs' const keepAlive = setInterval(() => {}, 1000 * 60 * 60) diff --git a/src/test/ts/x.test.ts b/src/test/ts/x.test.ts index 84bc2ad..d34490c 100644 --- a/src/test/ts/x.test.ts +++ b/src/test/ts/x.test.ts @@ -1,7 +1,7 @@ import * as assert from 'node:assert' import * as fs from 'node:fs' -import * as path from 'node:path' import * as os from 'node:os' +import path from 'node:path' import { describe, it } from 'node:test' import { Stream } from 'node:stream' import { getEventListeners } from 'node:events'