mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
87968: Kill app if still up after e2e tests
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -129,6 +129,14 @@ jobs:
|
|||||||
name: e2e-test-screenshots
|
name: e2e-test-screenshots
|
||||||
path: cypress/screenshots
|
path: cypress/screenshots
|
||||||
|
|
||||||
|
- name: Stop app (in case it stays up after e2e tests)
|
||||||
|
run: |
|
||||||
|
app_pid=$(lsof -t -i:4000)
|
||||||
|
if [[ ! -z $app_pid ]]; then
|
||||||
|
echo "App was still up! (PID: $app_pid)"
|
||||||
|
kill -9 $app_pid
|
||||||
|
fi
|
||||||
|
|
||||||
# Start up the app with SSR enabled (run in background)
|
# Start up the app with SSR enabled (run in background)
|
||||||
- name: Start app in SSR (server-side rendering) mode
|
- name: Start app in SSR (server-side rendering) mode
|
||||||
run: |
|
run: |
|
||||||
|
@@ -26,7 +26,7 @@ export interface MyDSpaceActionsResult {
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-mydspace-actions-abstract',
|
selector: 'ds-mydspace-actions-abstract',
|
||||||
template: ''
|
template: '',
|
||||||
})
|
})
|
||||||
export abstract class MyDSpaceActionsComponent<T extends DSpaceObject, TService extends DataService<T>> {
|
export abstract class MyDSpaceActionsComponent<T extends DSpaceObject, TService extends DataService<T>> {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user