@metasession.co/devaudit-cli 0.1.61 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/sdlc/files/_common/skills/e2e-test-engineer/SKILL.md +24 -0
- package/sdlc/files/_common/skills/sdlc-implementer/SKILL.md +33 -0
- package/sdlc/files/ci/ci.yml.template +54 -0
- package/sdlc/files/ci/feature-e2e.yml.template +56 -6
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function emitJsonResult(payload) {
|
|
|
56
56
|
|
|
57
57
|
// package.json
|
|
58
58
|
var package_default = {
|
|
59
|
-
version: "0.1.
|
|
59
|
+
version: "0.1.62"};
|
|
60
60
|
|
|
61
61
|
// src/lib/version.ts
|
|
62
62
|
var CLI_VERSION = package_default.version;
|
|
@@ -2125,6 +2125,20 @@ function buildAuthenticatedE2eStep(cfg) {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
return lines.join("\n");
|
|
2127
2127
|
}
|
|
2128
|
+
function buildFeatureE2eTestStep(cfg) {
|
|
2129
|
+
const env = cfg.e2e_env ?? {};
|
|
2130
|
+
const lines = [
|
|
2131
|
+
" - name: Run in-scope E2E",
|
|
2132
|
+
" env:",
|
|
2133
|
+
" PLAYWRIGHT_HTML_REPORTER_OPEN: never",
|
|
2134
|
+
" PLAYWRIGHT_JSON_OUTPUT_NAME: e2e-results.json"
|
|
2135
|
+
];
|
|
2136
|
+
if (Object.keys(env).length > 0) lines.push(indentEnvBlock({ ...env }, 10));
|
|
2137
|
+
lines.push(" run: |");
|
|
2138
|
+
lines.push(' REQ_ID="${{ needs.detect-req.outputs.req_id }}"');
|
|
2139
|
+
lines.push(' npx playwright test --grep "$REQ_ID" --reporter=json,html');
|
|
2140
|
+
return lines.join("\n");
|
|
2141
|
+
}
|
|
2128
2142
|
function buildDbUriStep(dbService, dbPort) {
|
|
2129
2143
|
if (dbService !== "mongodb") return "";
|
|
2130
2144
|
return [
|
|
@@ -2179,6 +2193,7 @@ async function syncCiTemplates(ctx) {
|
|
|
2179
2193
|
E2E_SETUP_STEP: buildE2eSetupStep(cfg),
|
|
2180
2194
|
E2E_DEV_SERVER_STEP: buildE2eDevServerStep(cfg),
|
|
2181
2195
|
E2E_TEST_STEP: buildE2eTestStep(cfg),
|
|
2196
|
+
E2E_FEATURE_TEST_STEP: buildFeatureE2eTestStep(cfg),
|
|
2182
2197
|
E2E_AUTHENTICATED_STEP: buildAuthenticatedE2eStep(cfg)
|
|
2183
2198
|
};
|
|
2184
2199
|
let count = 0;
|