Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 5, 2022
1 parent 6cb52b1 commit 43e2765
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,30 @@ jobs:

- run: npm install
- run: npm run start
- run: npm run test
- run: npm run test -- --coverageReporters "lcov" --coverageReporters "json-summary"

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
with:
output: coverage/lcov-report/badges.svg

- name: Create Tag
id: create_tag
uses: jaywcjlove/[email protected]
with:
package-path: package.json

- name: get tag version
id: tag_version
uses: jaywcjlove/[email protected]

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage/lcov-report

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected]
Expand Down

0 comments on commit 43e2765

Please sign in to comment.