From ee71c72365904a9eec036c9ca0e5c97e837d6731 Mon Sep 17 00:00:00 2001 From: Jason Yu Date: Sun, 20 Oct 2024 14:06:19 +0100 Subject: [PATCH] fix npm test --- .github/workflows/ci.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 71fdda0..a79e635 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,8 @@ on: pull_request: jobs: - fmt-lint-check-test: + fmt-lint-check: + name: 'Format / Lint / Type Check' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,5 +18,24 @@ jobs: - run: deno fmt --check - run: deno lint - run: deno check --doc . + deno-unit: + name: 'Unit Test (Deno)' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x # Run with latest stable Deno. - run: deno task test:unit + node-unit: + name: 'Unit Test (Node.js)' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x # Run with latest stable Deno. + - uses: actions/setup-node@v4 + with: + node-version: ">=20" - run: deno task build:npm:unit