Skip to content

Commit 7b5838b

Browse files
committed
Update the integration test
1 parent a0c7572 commit 7b5838b

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/integration-test.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,16 @@ jobs:
7575
working-directory: e2e-app
7676
run: |
7777
php bin/console make:admin:dashboard --no-interaction
78-
php bin/console make:admin:crud Product --no-interaction
78+
79+
# Run make:admin:crud interactively with expect
80+
mkdir -p src/Controller/Admin/
81+
expect <<'EOD'
82+
spawn php bin/console make:admin:crud
83+
expect "Which Doctrine entity" { send "0\r" }
84+
expect "Which directory" { send "\r" }
85+
expect "Namespace of the generated CRUD controller" { send "\r" }
86+
expect eof
87+
EOD
7988
8089
# Add MenuItem::linkToCrud() entry if missing
8190
file="src/Controller/Admin/DashboardController.php"
@@ -136,9 +145,9 @@ jobs:
136145
}
137146
const runUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
138147
body += `\nRun: ${runUrl}`;
139-
await github.rest.issues.create({
140-
owner: context.repo.owner,
141-
repo: context.repo.repo,
142-
title: `Integration test failed: ${new Date().toISOString()}`,
143-
body
144-
});
148+
#await github.rest.issues.create({
149+
# owner: context.repo.owner,
150+
# repo: context.repo.repo,
151+
# title: `Integration test failed: ${new Date().toISOString().slice(0,10)}`,
152+
# body
153+
#});

0 commit comments

Comments
 (0)