Skip to content

Commit

Permalink
87968: Kill app if still up after e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ybnd committed Apr 8, 2022
1 parent 99c41b9 commit 22ac667
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ jobs:
name: e2e-test-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)
- name: Start app in SSR (server-side rendering) mode
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/mydspace-actions/mydspace-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface MyDSpaceActionsResult {
*/
@Component({
selector: 'ds-mydspace-actions-abstract',
template: ''
template: '',
})
export abstract class MyDSpaceActionsComponent<T extends DSpaceObject, TService extends DataService<T>> {

Expand Down

0 comments on commit 22ac667

Please sign in to comment.