From 3ce4cd9f7a49ddee0c8e6acd44cf15316b8d3e75 Mon Sep 17 00:00:00 2001 From: Adeoye Adefemi Date: Wed, 9 Aug 2023 03:20:50 +0100 Subject: [PATCH] chore --- .github/workflows/deno.yml | 8 ++++++++ .vscode/settings.json | 5 ----- main_bench.ts | 9 --------- main_test.ts | 6 +++--- 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index e5f1b19..1b993d7 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -40,3 +40,11 @@ jobs: - name: Run tests run: deno test -A + + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-22.04, macos-12, windows-2022 ] + steps: + - run: deno test --allow-all --coverage cov/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 3a1c545..7a73a41 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,2 @@ { - "workbench.colorCustomizations": { - "activityBar.background": "#2F2E23", - "titleBar.activeBackground": "#424031", - "titleBar.activeForeground": "#FBFBFA" - } } \ No newline at end of file diff --git a/main_bench.ts b/main_bench.ts index 5867ca0..e69de29 100644 --- a/main_bench.ts +++ b/main_bench.ts @@ -1,9 +0,0 @@ -import { add } from "./main.ts"; - -Deno.bench(function addSmall() { - add(1, 2); -}); - -Deno.bench(function addBig() { - add(2 ** 32, 2 ** 32); -}); diff --git a/main_test.ts b/main_test.ts index 1a91169..3e18342 100644 --- a/main_test.ts +++ b/main_test.ts @@ -1,6 +1,6 @@ import { assertEquals } from "https://deno.land/std@0.192.0/testing/asserts.ts"; import { add } from "./main.ts"; -Deno.test(function addTest() { - assertEquals(add(2, 3), 5); -}); +// Deno.test(function addTest() { +// assertEquals(add(2, 3), 5); +// });