| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a0061a commit c97ddac
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,8 @@ jobs: | |||
| 39 | 39 | - run: npm ci | |
| 40 | 40 | ||
| 41 | 41 | - name: Tests | |
| 42 | - run: npm run test -- --bundle=${{ matrix.bundle }} | ||
| 42 | + # run tests, but lint separately | ||
| 43 | + run: npm run test -- --no-lint --bundle=${{ matrix.bundle }} | ||
| 43 | 44 | ||
| 44 | 45 | lint: | |
| 45 | 46 | runs-on: ubuntu-latest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -702,12 +702,19 @@ export const runTestsAndWatch = task({ | |||
| 702 | 702 | }, | |
| 703 | 703 | }); | |
| 704 | 704 | ||
| 705 | - export const runTestsParallel = task({ | ||
| 706 | - name: "runtests-parallel", | ||
| 705 | + const doRunTestsParallel = task({ | ||
| 706 | + name: "do-runtests-parallel", | ||
| 707 | 707 | description: "Runs all the tests in parallel using the built run.js file.", | |
| 708 | 708 | dependencies: runtestsDeps, | |
| 709 | 709 | run: () => runConsoleTests(testRunner, "min", /*runInParallel*/ cmdLineOptions.workers > 1), | |
| 710 | 710 | }); | |
| 711 | + | ||
| 712 | + export const runTestsParallel = task({ | ||
| 713 | + name: "runtests-parallel", | ||
| 714 | + description: "Runs all the tests in parallel using the built run.js file, linting in parallel if --lint=true.", | ||
| 715 | + dependencies: [doRunTestsParallel].concat(cmdLineOptions.lint ? [lint] : []), | ||
| 716 | + }); | ||
| 717 | + | ||
| 711 | 718 | // task("runtests-parallel").flags = { | |
| 712 | 719 | // " --light": "Run tests in light mode (fewer verifications, but tests run faster).", | |
| 713 | 720 | // " --keepFailed": "Keep tests in .failed-tests even if they pass.", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ import os from "os"; | |||
| 4 | 4 | const ci = ["1", "true"].includes(process.env.CI ?? ""); | |
| 5 | 5 | ||
| 6 | 6 | const parsed = minimist(process.argv.slice(2), { | |
| 7 | - boolean: ["dirty", "light", "colors", "lkg", "soft", "fix", "failed", "keepFailed", "force", "built", "ci", "bundle", "typecheck"], | ||
| 7 | + boolean: ["dirty", "light", "colors", "lkg", "soft", "fix", "failed", "keepFailed", "force", "built", "ci", "bundle", "typecheck", "lint"], | ||
| 8 | 8 | string: ["browser", "tests", "break", "host", "reporter", "stackTraceLimit", "timeout", "shards", "shardId"], | |
| 9 | 9 | alias: { | |
| 10 | 10 | /* eslint-disable quote-props */ | |
@@ -41,6 +41,7 @@ const parsed = minimist(process.argv.slice(2), { | |||
| 41 | 41 | ci, | |
| 42 | 42 | bundle: true, | |
| 43 | 43 | typecheck: true, | |
| 44 | + lint: true, | ||
| 44 | 45 | } | |
| 45 | 46 | }); | |
| 46 | 47 | ||
@@ -86,5 +87,6 @@ export default options; | |||
| 86 | 87 | * @property {string} break | |
| 87 | 88 | * @property {boolean} bundle | |
| 88 | 89 | * @property {boolean} typecheck | |
| 90 | + * @property {boolean} lint | ||
| 89 | 91 | */ | |
| 90 | 92 | void 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments