From 07077f6340bbf7a62f7f8c571508aca0eace03d5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:28:32 +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 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 bf8702de..f912e4e6 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 6799bc27..f158b77c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "prepare": "husky", "prepublishOnly": "pnpm lint && pnpm test", "release": "bumpp && pnpm publish", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "vue-tsc --noEmit" }, "dependencies": { From 94722895a925654232ee383f14dd152cf7be74f1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:32:13 +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 5daa628a..0512dc44 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 f912e4e6..6e93011d 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