diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ec141bd86011..ea931b2d0088 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -6,8 +6,6 @@ on: push: branches: - main - - feat/** - - fix/** pull_request: branches: - main @@ -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: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000000..c23e14ad37c0 --- /dev/null +++ b/codecov.yml @@ -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 diff --git a/packages/taro-runtime/jest.config.js b/packages/taro-runtime/jest.config.js index 3250c0f9c858..ac05a920271c 100644 --- a/packages/taro-runtime/jest.config.js +++ b/packages/taro-runtime/jest.config.js @@ -1,7 +1,6 @@ const path = require('path') module.exports = { - collectCoverage: false, coveragePathIgnorePatterns: ['nerv.js', 'vue.js', 'utils.js'], globals: { ENABLE_INNER_HTML: true, diff --git a/packages/taro-runtime/package.json b/packages/taro-runtime/package.json index c003b3a98dc9..66a0957770de 100644 --- a/packages/taro-runtime/package.json +++ b/packages/taro-runtime/package.json @@ -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",