From 5de08ba64100aae6843b3926e725120b1c3b46bc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:50:29 +0100 Subject: [PATCH 1/3] ci: run test suite on windows --- .github/workflows/ci.yml | 5 ++++- .github/workflows/codeql.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1af81dc..065f405f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,10 @@ on: jobs: ci: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f7fb2217..d7438e85 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,10 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} permissions: actions: read contents: read From b30f614b1b89d2a45d39940cb4d2a7ea338a4841 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:53:14 +0100 Subject: [PATCH 2/3] chore: don't apply to codeql --- .github/workflows/codeql.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d7438e85..f7fb2217 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,10 +11,7 @@ on: jobs: analyze: name: Analyze - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest permissions: actions: read contents: read From 8b0f9691aaf9311a933026050b5e9f1ace6c51c1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 13:00:27 +0100 Subject: [PATCH 3/3] chore: move coverage flag --- .github/workflows/ci.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 065f405f..76da2886 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: pnpm run lint - name: ๐Ÿงช Test project - run: pnpm test -- --coverage + run: pnpm test - name: ๐Ÿ›  Build project run: pnpm build diff --git a/package.json b/package.json index c30f0459..df981b3c 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "prepack": "pnpm build", "prepublishOnly": "pnpm lint && pnpm test", "release": "bumpp && npm publish", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit" }, "dependencies": {