From 1aaff4f481d799cdb1f8c6df1ac6298c64bb802d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:10:23 +0100 Subject: [PATCH 1/3] 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 b4d2b03f..d66c571f 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 playwright-core install - 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 959e4932..8937f88e 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "prepare": "husky", "prepublishOnly": "pnpm lint && pnpm test", "release": "bumpp && npm publish && git push --follow-tags", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "tsc --noEmit" }, "dependencies": { From fd6ebf513149e0555f3e29627e914beca08f1e10 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:11:04 +0100 Subject: [PATCH 2/3] Update .github/workflows/ci.yml --- .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 d66c571f..eb351d57 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 38e440bc0fc841def12f6d96f0b95b61c3ac2779 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 14:21:06 +0100 Subject: [PATCH 3/3] ci: don't upload windows coverage --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb351d57..47881c14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,7 @@ jobs: run: pnpm build - name: ๐ŸŸฉ Coverage + if: matrix.os != 'windows-latest' uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}