Carlos Santos 12223ab43c backend: Add cleanup action and integrate it into the CI workflow
backend: Updated action extension file to yml

backend: Update cleanup action path in integration tests

backend: Add cleanup action and update integration tests to use it

backend: Refactor integration tests to consistently checkout OpenVidu Meet
2025-05-06 18:16:03 +02:00

38 lines
1011 B
YAML

name: 'OpenVidu Meet Cleanup'
description: 'Clean up OpenVidu Meet test environment'
runs:
using: "composite"
steps:
- name: Kill backend process
run: pkill -f "npm run start:prod" || true
shell: bash
- name: Stop OpenVidu Local Deployment containers
run: |
cd openvidu-local-deployment/community
docker compose down -v
shell: bash
- name: Clean up temporary files
run: |
rm -rf /tmp/openvidu-*
rm -rf /tmp/livekit-*
shell: bash
- name: Clean up Docker resources
run: docker system prune -f
shell: bash
- name: Kill orphaned processes
run: |
ps aux | grep -i 'npm\|node\|livekit' | grep -v grep || true
ps aux | grep -i 'npm\|node\|livekit' | grep -v grep | awk '{print $2}' | xargs kill -9 || true
shell: bash
- name: Show system status
run: |
echo "=== System status after cleanup ==="
df -h
free -h
docker ps -a
shell: bash