From 0d063fac96e89fee66ebde0706a887d304153a56 Mon Sep 17 00:00:00 2001 From: "Alex M. - Clockwork" Date: Mon, 29 Jan 2024 10:32:30 +0200 Subject: [PATCH 1/3] fix: Minor gh action error and test --- .github/workflows/test-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index 4397560..d62caf1 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -25,7 +25,7 @@ jobs: - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: "18.x" + node-version: 18 cache: 'pnpm' - name: 'Install Deps' run: pnpm install From fa2452615eb7026a636520930e3aff0d13179d54 Mon Sep 17 00:00:00 2001 From: "Alex M. - Clockwork" Date: Mon, 29 Jan 2024 10:34:17 +0200 Subject: [PATCH 2/3] fix: Github Action names --- .github/workflows/test-coverage.yml | 2 +- .github/workflows/test-vitest.yml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index d62caf1..2dd4e64 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -1,4 +1,4 @@ -name: Semantic PR +name: Coverage Report on: pull_request_target: diff --git a/.github/workflows/test-vitest.yml b/.github/workflows/test-vitest.yml index 1bd5ace..bc8f902 100644 --- a/.github/workflows/test-vitest.yml +++ b/.github/workflows/test-vitest.yml @@ -1,4 +1,4 @@ -name: Semantic PR +name: Unit tests on: pull_request_target: @@ -11,18 +11,15 @@ on: jobs: build: runs-on: ubuntu-20.04 - strategy: - matrix: - node-version: [16, 18, 20] steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: version: 8 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 18 cache: 'pnpm' - name: Install dependencies run: pnpm install From 67e84e123a5daf4a4da5c09c2f9c422a6d3ca13d Mon Sep 17 00:00:00 2001 From: "Alex M. - Clockwork" Date: Mon, 29 Jan 2024 10:35:38 +0200 Subject: [PATCH 3/3] fix: Add json-summary coverage reporter --- vitest.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vitest.config.ts b/vitest.config.ts index 878d0b9..4ca1630 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ coverage: { include: ["src/**/*.{test,spec}.ts"], enabled: true, + reporter: "json-summary", }, }, });