Skip to content

Commit

Permalink
chore: test ci codecov (#15030)
Browse files Browse the repository at this point in the history
* chore: test ci codecov

* chore: test ci codecov

* chore: test ci codecov

* chore: test ci codecov

* chore: test ci codecov
  • Loading branch information
Chen-jj authored Dec 25, 2023
1 parent 5625764 commit 854f0c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
push:
branches:
- main
- feat/**
- fix/**
pull_request:
branches:
- main
Expand Down Expand Up @@ -100,6 +98,10 @@ jobs:
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

rust-testing:
strategy:
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
comment:
layout: "header, diff, flags, components" # show component info in the PR comment

flag_management:
individual_flags: # exceptions to the default rules above, stated flag by flag
- name: taro-runtime #fill in your own flag name
paths:
- packages/taro-runtime #fill in your own path. Note, accepts globs, not regexes
1 change: 0 additions & 1 deletion packages/taro-runtime/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path')

module.exports = {
collectCoverage: false,
coveragePathIgnorePatterns: ['nerv.js', 'vue.js', 'utils.js'],
globals: {
ENABLE_INNER_HTML: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "rimraf ./dist && tsc -emitDeclarationOnly && rollup -c",
"dev": "rollup -c -w",
"test": "jest",
"test:ci": "jest --ci -i --coverage false"
"test:ci": "jest --ci -i --coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 854f0c5

Please sign in to comment.