Skip to content

Commit

Permalink
ci: update ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteXyy committed Jun 12, 2024
1 parent 3f33588 commit 008bbe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2.1.0
- uses: pnpm/action-setup@v4
with:
version: 7.0.0
version: 9
run_install: true

- name: test
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
with:
node-version: '16'
registry-url: https://registry.npmjs.org/

- name: Install
run: corepack enable && pnpm i
version: 9
run_install: true

- name: publish
run: pnpm test && npm run publish
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'jsdom',
coverage: { reporter: ['text'], include: ['src'] },
coverage: { reporter: ['text', 'clover'], include: ['src'] },
setupFiles: ['./vitest.setup.ts'],
},
});

0 comments on commit 008bbe5

Please sign in to comment.