Skip to content

Commit

Permalink
chore: PR to test coverage action (#3)
Browse files Browse the repository at this point in the history
* chore: PR to test coverage action

* fix: Update GH action

* chore: Test coverage

* fix: Vitest coverage config

* fix: Update GH Actions
  • Loading branch information
clockworkgr authored Jan 29, 2024
1 parent 4502cd0 commit b7c6c10
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/major-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/minor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: 'Install Deps'
run: pnpm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand Down
5 changes: 2 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ export default defineConfig({
test: {
include: ["src/**/*.{test,spec}.ts"],
coverage: {
include: ["src/**/*.{test,spec}.ts"],
enabled: true,
reporter: "json-summary",
include: ["src/**/*.ts"],
reporter: ["text", "json", "json-summary"],
},
},
});

0 comments on commit b7c6c10

Please sign in to comment.