Publish early battle QA report
This commit is contained in:
@@ -5,11 +5,12 @@ import { join } from 'node:path';
|
||||
const qaVersion = process.env.PUBLIC_QA_VERSION ?? makeQaVersion();
|
||||
const releaseCommit = gitValue(['rev-parse', 'HEAD'], 'unknown');
|
||||
const releaseShortCommit = gitValue(['rev-parse', '--short', 'HEAD'], 'unknown');
|
||||
const qaReportFile = 'qa-early-report.json';
|
||||
|
||||
assertNoTrackedChanges();
|
||||
runPnpmScript('verify:local-release');
|
||||
runPnpmScript('qa:early');
|
||||
writeReleaseManifest(qaVersion, releaseCommit, releaseShortCommit);
|
||||
runPnpmScript('qa:early', { QA_REPORT_PATH: join('dist', qaReportFile) });
|
||||
writeReleaseManifest(qaVersion, releaseCommit, releaseShortCommit, qaReportFile);
|
||||
runPnpmScript('deploy:nas:dist');
|
||||
runPnpmScript('verify:public-deploy', { PUBLIC_QA_VERSION: qaVersion, PUBLIC_QA_COMMIT: releaseCommit });
|
||||
|
||||
@@ -35,7 +36,7 @@ function assertNoTrackedChanges() {
|
||||
}
|
||||
}
|
||||
|
||||
function writeReleaseManifest(qaVersion, commit, shortCommit) {
|
||||
function writeReleaseManifest(qaVersion, commit, shortCommit, qaReport) {
|
||||
const manifest = {
|
||||
app: 'heros_web',
|
||||
qaVersion,
|
||||
@@ -43,6 +44,7 @@ function writeReleaseManifest(qaVersion, commit, shortCommit) {
|
||||
shortCommit,
|
||||
branch: gitValue(['branch', '--show-current'], 'unknown'),
|
||||
generatedAt: new Date().toISOString(),
|
||||
qaReport,
|
||||
verification: ['verify:local-release', 'qa:early', 'verify:public-deploy']
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user