Set up complete CI quality pipeline and app scaffold#4
Closed
WilcoLouwerse wants to merge 15 commits into
Closed
Conversation
…low — set by app-create command
… ls, git, and common info commands
- Replace @typescript-eslint/eslint-plugin@^8.x with ^7.18.0 to satisfy peer dependency chain from @nextcloud/eslint-config via @vue/eslint-config-typescript - Add @typescript-eslint/parser@^7.18.0 and eslint-plugin-vue@^9.21.1 explicitly so transitive peer deps are hoisted to top-level node_modules (required by ESLint v8) - Add vue-eslint-parser@^9.4.3 explicitly to ensure it is hoisted and discoverable - Add stylelint.config.js to prevent stylelint picking up parent-directory config - Regenerate package-lock.json with correct dependency resolution
CI requires phpunit.xml or phpunit-unit.xml when enable-phpunit is true. Adds both config files, bootstrap files, and a placeholder unit test.
Provides a starting structure for API integration tests. Enable in CI by setting enable-newman: true in code-quality.yml.
The register() method is part of the IBootstrap interface contract. Like boot(), its $context parameter is intentionally unused in the template since it serves as a placeholder for app-specific registrations.
All three can now be tested locally: - phpmetrics: runs via composer phpmetrics locally - phpunit: runs via docker exec against the Nextcloud container (XDEBUG_MODE=coverage to avoid runner warning / non-zero exit) - newman: runs via npx newman against http://nextcloud.local
…in_password) CI workflow passes base_url/admin_user/admin_password but the collection used baseUrl/username/password. Mismatched names caused Newman to silently fall back to the collection default of http://localhost (port 80), which nothing answers in CI — resulting in ECONNREFUSED. Also updates default base_url to http://localhost:8080 to match the PHP built-in server CI starts for Newman tests.
…fold Add appspec/openspec scaffold, dev tooling, and CI-ready test infrastructure
Contributor
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (100 total)
npm dependencies (215 total)
PHPUnit Tests
Code coverage: 0% (0 / 2 statements) Integration Tests (Newman)
Generated automatically by the Quality workflow.
|
Collaborator
Author
|
Closing — incorrect target branch (development must target beta, not main). Re-opening with correct target. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
appspec/andopenspec/scaffold directories with README templates,feature specs, ADR structure, and roadmap for spec-driven development
phpmetrics,phpunit, andnewmanin CI; add PHPUnit config files(
phpunit.xml,phpunit-unit.xml), bootstrap files, and a placeholder unit testnames (
base_url,admin_user,admin_password) to match CI workflow expectationscomposer.lockandpackage-lock.jsonto ensure reproducible installs in CI;resolve npm peer dependency conflicts (TypeScript ESLint 7.x, vue-eslint-parser hoisting)
Application.php,PHPMD
UnusedFormalParametersuppression forregister()interface stubpull-request-lint-check.yamlworkflow to satisfy org branch protection rulesetChecks
eslint, stylelint, composer audit, npm audit, PHPUnit 1/1, Newman 1/1)
Test plan