From f79c313433b0d193e599926956781890b287d496 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:29:56 +0100 Subject: [PATCH 1/3] 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 0512dc44..5daa628a 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 a7510e74..61a3c0eb 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 @@ -53,7 +59,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 59a4ab50..8de43b6c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "prepack": "pnpm build", "prepublishOnly": "pnpm lint && pnpm test", "release": "bumpp && pnpm publish", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "tsc --noEmit" }, "dependencies": { From 54ffaa01380e9fcb99e82c72f59c2ce2ffcaf307 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:30:58 +0100 Subject: [PATCH 2/3] chore: reduce matrices --- .github/workflows/autofix.yml | 4 +--- .github/workflows/ci.yml | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 5daa628a..c69e4689 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -13,9 +13,7 @@ permissions: jobs: autofix: - strategy: - matrix: - os: [ubuntu-latest, windows-latest] + runs-on: ubuntu-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61a3c0eb..4c62944f 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 From b2d9016773f7c781cb34789c1d9aba15f14954e3 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:31:10 +0100 Subject: [PATCH 3/3] Update .github/workflows/autofix.yml --- .github/workflows/autofix.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index c69e4689..0512dc44 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -14,7 +14,6 @@ permissions: jobs: autofix: runs-on: ubuntu-latest - runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - run: corepack enable