Skip to content

Commit d39d060

Browse files
authored
Merge branch 'main' into migrate-samples
2 parents d799af3 + b5a4aa8 commit d39d060

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
# contains(github.event.pull_request.paths.*, 'samples/generate-index.sh') # Or if the script itself changed
107107

108108
- name: Run All Playwright Tests
109+
if: steps.get_workspaces.outputs.affected_workspaces != ''
109110
run: npx playwright test e2e/samples.spec.ts
110111
env:
111112
# Pass the correct base reference for find-changes.sh when called by samples.spec.ts

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Commit and Push Changes (to temp branch)
112112
run: |
113-
git add -A
113+
git add dist/ package-lock.json
114114
if [ -z "$(git status --porcelain)" ]; then
115115
echo "No changes to commit"
116116
exit 0

e2e/samples.spec.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,6 @@ if (foldersToTest.length === 0) {
107107
foldersToTest.forEach((sampleFolder) => {
108108
test(`test ${sampleFolder}`, async ({ page }) => {
109109

110-
// START Build the sample
111-
const buildProcess = childProcess.spawn('npm', ['run', 'build'], {
112-
cwd: path.join(samplesDir, sampleFolder),
113-
stdio: 'inherit',
114-
});
115-
116-
await new Promise((resolve, reject) => {
117-
buildProcess.on('close', (code) => {
118-
if (code === 0) {
119-
resolve(true);
120-
} else {
121-
reject(new Error(`Build process for ${sampleFolder} exited with code ${code}`));
122-
}
123-
});
124-
buildProcess.on('error', (err) => {
125-
reject(new Error(`Failed to start build process for ${sampleFolder}: ${err.message}`));
126-
});
127-
});
128-
// END Build the sample
129-
130110
// START run the preview
131111
// Get an available port
132112
const port = 8080;

0 commit comments

Comments
 (0)