-
Notifications
You must be signed in to change notification settings - Fork 15
ci: run code-pushup on self in monorepo mode #1154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9b26aac
style: reduce line count of named inputs config
matejchalk 05e8c39
chore: remove unused cache outputs configuration
matejchalk 924cc1f
ci: remove --verbose arg from code-pushup targets
matejchalk 3a29eb1
ci: simplify standalone code-pushup target
matejchalk 5d95773
feat(plugin-typescript): make init function synchronous
matejchalk 043eb80
chore: clean up code-pushup presets and prepare for reuse on project-…
matejchalk 4f60265
ci: configure cached code-pushup targets per project
matejchalk 4444f3b
ci: run code-pushup on self in monorepo mode
matejchalk 9aad418
chore: remove incomplete lint-report targets
matejchalk 01ef84a
ci: fix coverage plugin for projects with missing int-test target
matejchalk 5fd9599
ci: move code-pushup output dir to workspace root
matejchalk 2429f4a
ci(local-action): skip print-config commands by defining configPatterns
matejchalk 058e4bd
ci: fix circular lint errors from bundled configs
matejchalk 138fe3d
feat(ci): add jobId option to prevent conflicting PR comments
matejchalk b47aa6a
ci(local-action): separate standalone and monorepo code-pushup jobs
matejchalk a61f991
fix(cli): handle multiple --persist.outputDir arguments
matejchalk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,27 @@ | ||
| import 'dotenv/config'; | ||
| import { | ||
| axeCoreConfig, | ||
| coverageCoreConfigNx, | ||
| eslintCoreConfigNx, | ||
| jsDocsCoreConfig, | ||
| jsPackagesCoreConfig, | ||
| lighthouseCoreConfig, | ||
| typescriptPluginConfig, | ||
| configureCoveragePlugin, | ||
| configureEslintPlugin, | ||
| configureJsDocsPlugin, | ||
| configureJsPackagesPlugin, | ||
| configureLighthousePlugin, | ||
| configureTypescriptPlugin, | ||
| configureUpload, | ||
| } from './code-pushup.preset.js'; | ||
| import type { CoreConfig } from './packages/models/src/index.js'; | ||
| import { mergeConfigs } from './packages/utils/src/index.js'; | ||
|
|
||
| const project = process.env['NX_TASK_TARGET_PROJECT'] || 'cli-workspace'; | ||
|
|
||
| const config: CoreConfig = { | ||
| ...(process.env['CP_API_KEY'] && { | ||
| upload: { | ||
| project, | ||
| organization: 'code-pushup', | ||
| server: 'https://api.staging.code-pushup.dev/graphql', | ||
| apiKey: process.env['CP_API_KEY'], | ||
| }, | ||
| }), | ||
| plugins: [], | ||
| }; | ||
| // TODO: replace with something meaningful, or move out of the repo | ||
| const TARGET_URL = | ||
| 'https://github.com/code-pushup/cli?tab=readme-ov-file#code-pushup-cli/'; | ||
|
|
||
| export default mergeConfigs( | ||
| config, | ||
| await coverageCoreConfigNx(), | ||
| await jsPackagesCoreConfig(), | ||
| await lighthouseCoreConfig( | ||
| 'https://github.com/code-pushup/cli?tab=readme-ov-file#code-pushup-cli/', | ||
| ), | ||
| await typescriptPluginConfig({ | ||
| tsconfig: 'packages/cli/tsconfig.lib.json', | ||
| }), | ||
| await eslintCoreConfigNx(), | ||
| jsDocsCoreConfig([ | ||
| 'packages/**/src/**/*.ts', | ||
| '!packages/**/node_modules', | ||
| '!packages/**/{mocks,mock}', | ||
| '!**/*.{spec,test}.ts', | ||
| '!**/implementation/**', | ||
| '!**/internal/**', | ||
| ]), | ||
| axeCoreConfig( | ||
| 'https://github.com/code-pushup/cli?tab=readme-ov-file#code-pushup-cli/', | ||
| ), | ||
| configureUpload(), | ||
| await configureEslintPlugin(), | ||
| await configureCoveragePlugin(), | ||
| await configureJsPackagesPlugin(), | ||
| configureTypescriptPlugin(), | ||
| configureJsDocsPlugin(), | ||
| await configureLighthousePlugin(TARGET_URL), | ||
| axeCoreConfig(TARGET_URL), | ||
| ); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.