From c70f6bb26b27ff320026a885c0bf0a6044a17092 Mon Sep 17 00:00:00 2001 From: Daniel Freytag Date: Wed, 27 Nov 2024 20:40:43 +0100 Subject: [PATCH] fix: test on windows --- .github/workflows/test.yml | 9 +++++++-- README.md | 1 + check-required-env/README.md | 1 + dates/README.md | 1 + deno.jsonc | 2 +- logger/README.md | 1 + 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24300ef..365f2d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -126,5 +126,10 @@ jobs: - name: Set up package.json run: 'echo ''{ "type": "module" }'' > package.json' - - name: Test - run: npx --yes tsx --test **/*.test.ts + - name: Test (Windows) + if: matrix.os == 'windows-latest' + run: npx --yes tsx --test "**\*.test.ts" + + - name: Test (Linux/macOS) + if: matrix.os != 'windows-latest' + run: npx --yes tsx --test "**/*.test.ts" diff --git a/README.md b/README.md index 9ec4f16..d0c23d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Utility packages [![JSR @frytg](https://jsr.io/badges/@frytg)](https://jsr.io/@frytg) +[![ci](https://github.com/frytg/utility/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/frytg/utility/actions/workflows/test.yml) [![Linted with Biome](https://img.shields.io/badge/Linted_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev) A collection of utilities for TypeScript and JavaScript. diff --git a/check-required-env/README.md b/check-required-env/README.md index 60940ff..58ab0ed 100644 --- a/check-required-env/README.md +++ b/check-required-env/README.md @@ -1,6 +1,7 @@ # Check a required environment variable [![JSR @frytg/check-required-env](https://jsr.io/badges/@frytg/check-required-env)](https://jsr.io/@frytg/check-required-env) +[![ci](https://github.com/frytg/utility/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/frytg/utility/actions/workflows/test.yml) Simply check if a certain required environment variable is set. If not, throw an error and exit the process. diff --git a/dates/README.md b/dates/README.md index 4be268d..5ab9c29 100644 --- a/dates/README.md +++ b/dates/README.md @@ -1,6 +1,7 @@ # Date utilities [![JSR @frytg/dates](https://jsr.io/badges/@frytg/dates)](https://jsr.io/@frytg/dates) +[![ci](https://github.com/frytg/utility/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/frytg/utility/actions/workflows/test.yml) This is a simple opinionated wrapper around the [Luxon](https://github.com/moment/luxon) library to provide pre-configured helpers. diff --git a/deno.jsonc b/deno.jsonc index fc3772c..20a6d35 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -6,7 +6,7 @@ "noImplicitOverride": true, "noUncheckedIndexedAccess": true }, - "exclude": [".git", ".github"], + "exclude": [".git", ".github", "vendor"], "fmt": { "useTabs": true, "lineWidth": 120, diff --git a/logger/README.md b/logger/README.md index 3cd7f5f..e22b895 100644 --- a/logger/README.md +++ b/logger/README.md @@ -1,6 +1,7 @@ # Winston logging wrapper [![JSR @frytg/logger](https://jsr.io/badges/@frytg/logger)](https://jsr.io/@frytg/logger) +[![ci](https://github.com/frytg/utility/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/frytg/utility/actions/workflows/test.yml) This is a simple opinionated wrapper around the logging library [Winston](https://github.com/winstonjs/winston) to provide a logger that is easy to use and configure.