fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job #41

Merged
david merged 33 commits from fix/switch-to-npm-ci into main 2026-05-20 19:51:36 +00:00
2 changed files with 28 additions and 12 deletions
Showing only changes of commit e08c2bbdfd - Show all commits
+9
View File
@@ -85,6 +85,9 @@ test.describe('CSV Upload Player Deduplication', () => {
multipart: formData, multipart: formData,
}); });
if (!response.ok()) {
console.log('CSV upload failed:', response.status(), await response.text());
}
expect(response.ok()).toBeTruthy(); expect(response.ok()).toBeTruthy();
// Check that only 4 unique players were created (not 8) // Check that only 4 unique players were created (not 8)
@@ -139,6 +142,9 @@ test.describe('CSV Upload Player Deduplication', () => {
multipart: formData, multipart: formData,
}); });
if (!response.ok()) {
console.log('CSV upload failed:', response.status(), await response.text());
}
expect(response.ok()).toBeTruthy(); expect(response.ok()).toBeTruthy();
// Check that players were created without extra whitespace // Check that players were created without extra whitespace
@@ -196,6 +202,9 @@ test.describe('CSV Upload Player Deduplication', () => {
multipart: formData, multipart: formData,
}); });
if (!response.ok()) {
console.log('CSV upload failed:', response.status(), await response.text());
}
expect(response.ok()).toBeTruthy(); expect(response.ok()).toBeTruthy();
// Check that the existing player was updated (not duplicated) // Check that the existing player was updated (not duplicated)
+8 -1
View File
@@ -7,7 +7,9 @@ test.describe('Cucumber E2E Tests', () => {
? 'https://euchre-ci.notsosm.art' ? 'https://euchre-ci.notsosm.art'
: 'http://localhost:3000'; : 'http://localhost:3000';
const result = execSync( let result;
try {
result = execSync(
'npx cucumber-js --config e2e/cucumber/cucumber.config.ts', 'npx cucumber-js --config e2e/cucumber/cucumber.config.ts',
{ {
encoding: 'utf-8', encoding: 'utf-8',
@@ -19,6 +21,11 @@ test.describe('Cucumber E2E Tests', () => {
cwd: process.cwd(), cwd: process.cwd(),
} }
); );
} catch (error: any) {
console.log('Cucumber stderr:', error.stderr?.toString() || 'none');
console.log('Cucumber stdout:', error.stdout?.toString() || 'none');
throw error;
}
console.log(result); console.log(result);
}); });