Tweak test and CI configs (#7866)

* Set `jest` verbose to false by default

* Correct `doc-debug.js` path

* Remove outdated ignore patterns

* Exclude Node.js 13 on macos
This commit is contained in:
fisker Cheung authored and GitHub committed 2020-03-26 17:02:43 +02:00
1 parent 302dbc3796
commit 412694e1c5
3 files changed
+12 -3

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ jobs:
- os: "ubuntu-latest" - os: "ubuntu-latest"
node: "12" node: "12"
ENABLE_CODE_COVERAGE: true ENABLE_CODE_COVERAGE: true
exclude:
- os: "macos-latest"
node: "13"
env: env:
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }} ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
+6
View File
@@ -72,6 +72,9 @@ jobs:
- "13" - "13"
- "12" - "12"
- "10" - "10"
exclude:
- os: "macos-latest"
node: "13"
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: [build] needs: [build]
@@ -110,6 +113,9 @@ jobs:
- "13" - "13"
- "12" - "12"
- "10" - "10"
exclude:
- os: "macos-latest"
node: "13"
env: env:
STANDALONE: true STANDALONE: true
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} (standalone) name: Node.js ${{ matrix.node }} on ${{ matrix.os }} (standalone)
+3 -3
View File
@@ -1,4 +1,5 @@
"use strict"; "use strict";
const { isCI } = require("ci-info");
const ENABLE_CODE_COVERAGE = !!process.env.ENABLE_CODE_COVERAGE; const ENABLE_CODE_COVERAGE = !!process.env.ENABLE_CODE_COVERAGE;
module.exports = { module.exports = {
@@ -8,12 +9,11 @@ module.exports = {
"jest-snapshot-serializer-ansi", "jest-snapshot-serializer-ansi",
], ],
testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$", testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$",
testPathIgnorePatterns: ["tests/new_react", "tests/more_react"],
collectCoverage: ENABLE_CODE_COVERAGE, collectCoverage: ENABLE_CODE_COVERAGE,
collectCoverageFrom: ["src/**/*.js", "index.js", "!<rootDir>/node_modules/"], collectCoverageFrom: ["src/**/*.js", "index.js", "!<rootDir>/node_modules/"],
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: [
"<rootDir>/standalone.js", "<rootDir>/standalone.js",
"<rootDir>/src/doc/doc-debug.js", "<rootDir>/src/document/doc-debug.js",
"<rootDir>/src/main/massage-ast.js", "<rootDir>/src/main/massage-ast.js",
], ],
coverageReporters: ["text", "lcov"], coverageReporters: ["text", "lcov"],
@@ -33,5 +33,5 @@ module.exports = {
"jest-watch-typeahead/filename", "jest-watch-typeahead/filename",
"jest-watch-typeahead/testname", "jest-watch-typeahead/testname",
], ],
verbose: true, verbose: isCI,
}; };