From af7e3184b8a8dd260fcf027ab07b157372b4b08b Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:50:40 +0100 Subject: [PATCH 1/4] ci: run test suite on windows --- .github/workflows/autofix.yml | 5 ++++- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/codeql.yml | 5 ++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index c6c0be25..b9e52c02 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -8,7 +8,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 af5c4685..b022db94 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 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 709e212ab3fd262f80f0bce5fbe1236ac82e48d1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:54:02 +0100 Subject: [PATCH 2/4] chore: reduce matrices --- .github/workflows/autofix.yml | 5 +---- .github/workflows/ci.yml | 5 +---- .github/workflows/codeql.yml | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index b9e52c02..661c4ebc 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -8,10 +8,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 b022db94..6b8df47d 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 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 4bdfb5a21c5d1bbbdfbcbf46b4b6ba6d93b66dae Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:54:16 +0100 Subject: [PATCH 3/4] Update .github/workflows/autofix.yml --- .github/workflows/autofix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 661c4ebc..c6c0be25 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -8,7 +8,7 @@ permissions: jobs: autofix: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: corepack enable From 8a058a22d1f0d0a2387144964a9d9377cd382f17 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Oct 2024 12:59:45 +0100 Subject: [PATCH 4/4] 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 6b8df47d..ce40a545 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,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 5fefb548..815496f6 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "lint": "pnpm lint:all:eslint", "lint:all:eslint": "pnpm lint:eslint .", "lint:eslint": "eslint --fix", - "test": "vitest run", + "test": "vitest run --coverage", "test:types": "tsc --noEmit", "test:watch": "vitest watch" },