ci-scripts: fix workflow work path. Unify step names

pull/780/head
pabloFuente 2023-03-09 12:32:47 +01:00
parent 7d56ebfc77
commit 951be72be9
3 changed files with 39 additions and 39 deletions

View File

@ -73,34 +73,34 @@ jobs:
run: curl -s https://raw.githubusercontent.com/OpenVidu/openvidu/master/ci-scripts/commons.sh -o /opt/commons.sh && chmod u+x /opt/commons.sh run: curl -s https://raw.githubusercontent.com/OpenVidu/openvidu/master/ci-scripts/commons.sh -o /opt/commons.sh && chmod u+x /opt/commons.sh
- name: Clean environment - name: Clean environment
run: /opt/commons.sh --clean-environment run: /opt/commons.sh --clean-environment
- name: Setting up CI - name: Prepare test environment
run: /opt/commons.sh --prepare-test-environment openvidu/openvidu-test-e2e run: /opt/commons.sh --prepare-test-environment openvidu/openvidu-test-e2e
- name: Setting up Kurento Snapshots - name: Setting up Kurento Snapshots
run: /opt/commons.sh --prepare-kurento-snapshot run: /opt/commons.sh --prepare-kurento-snapshot
- name: Build OpenVidu Browser - name: Build openvidu-browser
run: cd openvidu && /opt/commons.sh --build-openvidu-browser run: /opt/commons.sh --build-openvidu-browser
- name: Build Openvidu Node Client - name: Build openvidu-node-client
run: cd openvidu && /opt/commons.sh --build-openvidu-node-client run: /opt/commons.sh --build-openvidu-node-client
- name: Build Openvidu Java Client - name: Build openvidu-java-client
run: cd openvidu && /opt/commons.sh --build-openvidu-java-client run: /opt/commons.sh --build-openvidu-java-client
- name: Build Openvidu Parent - name: Build openvidu-parent
run: cd openvidu && /opt/commons.sh --build-openvidu-parent run: /opt/commons.sh --build-openvidu-parent
- name: Build Openvidu Testapp - name: Build openvidu-testapp
run: cd openvidu && /opt/commons.sh --build-openvidu-testapp run: /opt/commons.sh --build-openvidu-testapp
- name: OpenVidu Server dashboard build - name: Build openvidu-server dashboard
run: cd openvidu && /opt/commons.sh --build-openvidu-server-dashboard run: /opt/commons.sh --build-openvidu-server-dashboard
- name: OpenVidu Server unit tests - name: openvidu-server unit tests
run: ci-scripts/openvidu-e2e-tests.sh --openvidu-server-unit-tests run: ci-scripts/openvidu-e2e-tests.sh --openvidu-server-unit-tests
- name: OpenVidu Server integration tests - name: openvidu-server integration tests
run: ci-scripts/openvidu-e2e-tests.sh --openvidu-server-integration-tests run: ci-scripts/openvidu-e2e-tests.sh --openvidu-server-integration-tests
- name: OpenVidu Server E2E build tests - name: Build openvidu-test-e2e
run: ci-scripts/openvidu-e2e-tests.sh --openvidu-test-e2e-build run: ci-scripts/openvidu-e2e-tests.sh --build-openvidu-test-e2e
- name: OpenVidu Server Build - name: Build openvidu-server
run: cd openvidu && /opt/commons.sh --build-openvidu-server run: /opt/commons.sh --build-openvidu-server
- name: Environment launch Kurento - name: Environment launch Kurento
run: ci-scripts/openvidu-e2e-tests.sh --environment-launch-kurento run: ci-scripts/openvidu-e2e-tests.sh --environment-launch-kurento
- name: Serve Testapp - name: Serve openvidu-testapp
run: cd openvidu && /opt/commons.sh --serve-openvidu-testapp run: /opt/commons.sh --serve-openvidu-testapp
- name: OpenVidu E2E Tests Kurento - name: OpenVidu E2E Tests Kurento
run: ci-scripts/openvidu-e2e-tests.sh --openvidu-e2e-tests-kurento run: ci-scripts/openvidu-e2e-tests.sh --openvidu-e2e-tests-kurento
- name: Test reports - name: Test reports

View File

@ -435,7 +435,7 @@ if [[ "${PREPARE_KURENTO_SNAPSHOT}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Browser build # Build openvidu-browser
# ------------- # -------------
if [[ "${BUILD_OV_BROWSER}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_BROWSER}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-browser || exit 1 pushd openvidu-browser || exit 1
@ -448,7 +448,7 @@ if [[ "${BUILD_OV_BROWSER}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Node client build # Build openvidu-node-client
# ------------- # -------------
if [[ "${BUILD_OV_NODE_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_NODE_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-node-client pushd openvidu-node-client
@ -461,7 +461,7 @@ if [[ "${BUILD_OV_NODE_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Java client build # Build openvidu-java-client
# ------------- # -------------
if [[ "${BUILD_OV_JAVA_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_JAVA_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-java-client pushd openvidu-java-client
@ -475,7 +475,7 @@ if [[ "${BUILD_OV_JAVA_CLIENT}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Parent build # Build openvidu-parent
# ------------- # -------------
if [[ "${BUILD_OV_PARENT}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_PARENT}" == true || "${EXECUTE_ALL}" == true ]]; then
mvn -B versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=TEST mvn -B versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=TEST
@ -483,7 +483,7 @@ if [[ "${BUILD_OV_PARENT}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Test App build # Build openvidu-testapp
# ------------- # -------------
if [[ "${BUILD_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-testapp pushd openvidu-testapp
@ -494,7 +494,7 @@ if [[ "${BUILD_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Server dashboard build # Build openvidu-server dashboard
# ------------- # -------------
if [[ "${BUILD_OV_SERVER_DASHBOARD}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_SERVER_DASHBOARD}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server/src/dashboard pushd openvidu-server/src/dashboard
@ -505,7 +505,7 @@ if [[ "${BUILD_OV_SERVER_DASHBOARD}" == true || "${EXECUTE_ALL}" == true ]]; the
fi fi
# ------------- # -------------
# OpenVidu Server build # Build openvidu-server
# ------------- # -------------
if [[ "${BUILD_OV_SERVER}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_SERVER}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server pushd openvidu-server
@ -515,7 +515,7 @@ if [[ "${BUILD_OV_SERVER}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Server dependency build # Build openvidu-server dependency
# ------------- # -------------
if [[ "${BUILD_OV_SERVER_DEPENDENCY}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_SERVER_DEPENDENCY}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server pushd openvidu-server
@ -524,7 +524,7 @@ if [[ "${BUILD_OV_SERVER_DEPENDENCY}" == true || "${EXECUTE_ALL}" == true ]]; th
fi fi
# ------------- # -------------
# OpenVidu Server PRO Inspector build # Build Inspector
# ------------- # -------------
if [[ "${BUILD_OV_SERVER_PRO_INSPECTOR}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_SERVER_PRO_INSPECTOR}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd dashboard pushd dashboard
@ -535,7 +535,7 @@ if [[ "${BUILD_OV_SERVER_PRO_INSPECTOR}" == true || "${EXECUTE_ALL}" == true ]];
fi fi
# ------------- # -------------
# OpenVidu Server PRO build # Build openvidu-server-pro
# ------------- # -------------
if [[ "${BUILD_OV_SERVER_PRO}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_SERVER_PRO}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server-pro pushd openvidu-server-pro
@ -545,7 +545,7 @@ if [[ "${BUILD_OV_SERVER_PRO}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# Serve OpenVidu TestApp # Serve openvidu-testapp
# ------------- # -------------
if [[ "${SERVE_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${SERVE_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then
# Generate certificate # Generate certificate

View File

@ -4,7 +4,7 @@ set -eu -o pipefail
# Ci flags # Ci flags
OV_INTEGRATION_TESTS=false OV_INTEGRATION_TESTS=false
OV_UNIT_TESTS=false OV_UNIT_TESTS=false
OV_E2E_TESTS_BUILD=false BUILD_OV_TEST_E2E=false
LAUNCH_OV_KURENTO=false LAUNCH_OV_KURENTO=false
OV_E2E_KURENTO=false OV_E2E_KURENTO=false
LAUNCH_OV_MEDIASOUP=false LAUNCH_OV_MEDIASOUP=false
@ -170,8 +170,8 @@ if [[ -n ${1:-} ]]; then
OV_INTEGRATION_TESTS=true OV_INTEGRATION_TESTS=true
shift 1 shift 1
;; ;;
--openvidu-test-e2e-build ) --build-openvidu-test-e2e )
OV_E2E_TESTS_BUILD=true BUILD_OV_TEST_E2E=true
shift 1 shift 1
;; ;;
--environment-launch-kurento ) --environment-launch-kurento )
@ -200,7 +200,7 @@ else
fi fi
# ------------- # -------------
# OpenVidu Unit tests # openvidu-server unit tests
# ------------- # -------------
if [[ "${OV_UNIT_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${OV_UNIT_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server pushd openvidu-server
@ -209,7 +209,7 @@ if [[ "${OV_UNIT_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu Integration tests # openvidu-server integration tests
# ------------- # -------------
if [[ "${OV_INTEGRATION_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${OV_INTEGRATION_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-server pushd openvidu-server
@ -218,9 +218,9 @@ if [[ "${OV_INTEGRATION_TESTS}" == true || "${EXECUTE_ALL}" == true ]]; then
fi fi
# ------------- # -------------
# OpenVidu E2E Tests build # Build openvidu-test-e2e
# ------------- # -------------
if [[ "${OV_E2E_TESTS_BUILD}" == true || "${EXECUTE_ALL}" == true ]]; then if [[ "${BUILD_OV_TEST_E2E}" == true || "${EXECUTE_ALL}" == true ]]; then
pushd openvidu-test-browsers pushd openvidu-test-browsers
mvn -B versions:set -DnewVersion=TEST && mvn -B clean install mvn -B versions:set -DnewVersion=TEST && mvn -B clean install
popd popd