Skip to content

Commit

Permalink
Merge pull request #192 from NodeSecure/ci-add-windows-mac
Browse files Browse the repository at this point in the history
chore(ci): run tests on Windows & Mac
  • Loading branch information
fraxken authored Apr 23, 2023
2 parents 61c18ea + 90cef7e commit 29dca26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ permissions:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- name: Harden Runner
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"qoa": "^0.2.0",
"sade": "^1.8.1",
"semver": "^7.3.8",
"server-destroy": "^1.0.1",
"sirv": "^2.0.2",
"zup": "0.0.1"
},
Expand Down
3 changes: 3 additions & 0 deletions test/httpServer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { get } from "@myunisoft/httpie";
import zup from "zup";
import * as i18n from "@nodesecure/i18n";
import * as flags from "@nodesecure/flags";
import enableDestroy from "server-destroy";

// Require Internal Dependencies
import { buildServer } from "../src/http-server/index.js";
Expand All @@ -26,6 +27,7 @@ const httpServer = buildServer(JSON_PATH, {
port: HTTP_PORT,
openLink: false
});
enableDestroy(httpServer.server);

tap.test("'/' should return index.html content", async(tape) => {
await i18n.getLocalLang();
Expand Down Expand Up @@ -138,6 +140,7 @@ tap.test("teardown", (tape) => {
tape.end();
tap.endAll();
});
httpServer.server.destroy();
});

/**
Expand Down

0 comments on commit 29dca26

Please sign in to comment.