From 92eaa718bf0f4338da946f9f5b4d44b46c6bd84a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:29:35 +0100 Subject: [PATCH 1/2] ci: run test suite on windows --- .github/workflows/ci.yml | 12 +++++++++--- package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3498e028..29b3bc17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,10 @@ on: jobs: lint: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -32,7 +35,10 @@ jobs: run: pnpm run lint test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -52,7 +58,7 @@ jobs: run: pnpm build - name: 🧪 Test project - run: pnpm test -- --coverage + run: pnpm test - name: 💪 Test types run: pnpm test:types diff --git a/package.json b/package.json index 6f5e896d..cdd7f24a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "prepare": "husky install", "prepublishOnly": "pnpm lint && pnpm test", "release": "bumpp && pnpm publish", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "tsc --noEmit" }, "dependencies": { From 85306e6ba4e5b2730b51de827b682f9e4128fb47 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:31:52 +0100 Subject: [PATCH 2/2] ci: reduce matrices --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29b3bc17..d4503c04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,7 @@ on: jobs: lint: - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4