ci(test): add flags for codecov to support mopnorepo #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js v18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install pnpm v8.x | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install deps | |
run: pnpm i | |
- name: Test lowcode-i18n-extract | |
working-directory: packages/lowcode-i18n-extract | |
run: npm run test:cov | |
- name: Upload coverage of lowcode-i18n-extract to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: yuntijs/lowcode-tools | |
flags: lowcode-i18n-extract | |
directory: ./packages/lowcode-i18n-extract/coverage/ |