Skip to content

Commit

Permalink
Merge 4.x to master (#45)
Browse files Browse the repository at this point in the history
* First commit to 4.x

* Modify codecov config.

* Test github action (#44)

* Test github action

* Test github action

* Test github action.

* Modify vitest config.
  • Loading branch information
terrylinooo authored Nov 27, 2023
1 parent 844bb79 commit 98b7d55
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ jobs:
name: dist
path: dist/

- name: Archive production artifacts
run: zip -r dist.zip dist/

- name: Upload dist to Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push
run: |
git config --global user.name 'GitHub Action'
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,12 @@ jobs:
run: npm install
- name: Run tests and collect coverage
run: npm run coverage
- name: List coverage directory
run: ls -l coverage/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/
verbose: true

2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
setupFiles: [resolve(__dirname, 'vitest.setup.ts')],
coverage: {
provider: 'v8',
reporter: ['text', 'html'],
reporter: ['text', 'html', 'json'],
},
},
});

0 comments on commit 98b7d55

Please sign in to comment.