From a99a7cc0fd4c5eb67bbd3199fd23c9efa0ef05b5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:29:48 +0100 Subject: [PATCH 1/2] ci: run test suite on windows --- .github/workflows/autofix.yml | 5 ++++- .github/workflows/ci.yml | 12 +++++++++--- package.json | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index c20f53f9..dbaa26bc 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,7 +13,10 @@ permissions: jobs: autofix: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - run: corepack enable diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea2c6ac1..6073ecd0 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 @@ -70,7 +76,7 @@ jobs: run: pnpm dev:prepare - 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 723604a7..07886a75 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,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 9ab02d23cfad1a35a9d9c1dcb0276cb638751f16 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:31:36 +0100 Subject: [PATCH 2/2] ci: reduce matrices --- .github/workflows/autofix.yml | 5 +---- .github/workflows/ci.yml | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index dbaa26bc..c20f53f9 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,10 +13,7 @@ permissions: jobs: autofix: - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: corepack enable diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6073ecd0..235b5b72 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