-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Integration Tests | ||
on: | ||
push: | ||
branches: | ||
- next | ||
|
||
pull_request: | ||
branches: | ||
- next | ||
|
||
jobs: | ||
backend_embedded_auth_tests: | ||
name: Embedded Auth API | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout OpenVidu Local Deployment | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: OpenVidu/openvidu-local-deployment | ||
ref: development | ||
path: openvidu-local-deployment | ||
|
||
- name: Configure Local Deployment | ||
shell: bash | ||
run: | | ||
cd openvidu-local-deployment/community | ||
./configure_lan_private_ip_linux.sh | ||
docker compose up -d | ||
- name: Wait for OpenVidu Local Deployment to Start | ||
shell: bash | ||
run: | | ||
MAX_WAIT_SECONDS=60 | ||
SECONDS=0 | ||
until curl -s -f -o /dev/null http://localhost:7880; do | ||
if [ $SECONDS -gt $MAX_WAIT_SECONDS ]; then | ||
echo "OpenVidu Local Deployment did not start in $MAX_WAIT_SECONDS seconds" | ||
exit 1 | ||
fi | ||
echo "Waiting for openvidu-local-deployment to be ready ..." | ||
sleep 5 | ||
SECONDS=$((SECONDS+5)) | ||
done | ||
echo "OpenVidu Local Deployment started in $SECONDS seconds" | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: next | ||
path: openvidu-call | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Run openvidu-call backend | ||
run: | | ||
cd openvidu-call | ||
./prepare.sh | ||
cd backend | ||
npm install | ||
npm run test:embedded-auth-api |