diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 9282acd9..53bd66bd 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -44,20 +44,23 @@ jobs: - name: Build Docker Images run: | export DOCKER_DEFAULT_PLATFORM=linux/amd64 - docker compose build appflowy_cloud appflowy_history appflowy_worker + docker compose build appflowy_cloud appflowy_history appflowy_worker admin_frontend - name: Push docker images to docker hub run: | docker tag appflowyinc/appflowy_cloud appflowyinc/appflowy_cloud:${GITHUB_SHA} docker tag appflowyinc/appflowy_history appflowyinc/appflowy_history:${GITHUB_SHA} docker tag appflowyinc/appflowy_worker appflowyinc/appflowy_worker:${GITHUB_SHA} + docker tag appflowyinc/admin_frontend appflowyinc/admin_frontend:${GITHUB_SHA} echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin docker push appflowyinc/appflowy_cloud:${GITHUB_SHA} docker push appflowyinc/appflowy_history:${GITHUB_SHA} docker push appflowyinc/appflowy_worker:${GITHUB_SHA} + docker push appflowyinc/admin_frontend:${GITHUB_SHA} APPFLOWY_HISTORY_VERSION=${GITHUB_SHA} APPFLOWY_WORKER_VERSION=${GITHUB_SHA} APPFLOWY_CLOUD_VERSION=${GITHUB_SHA} + APPFLOWY_ADMIN_FRONTEND_VERSION=${GITHUB_SHA} test: name: Integration Tests @@ -72,6 +75,8 @@ jobs: test_cmd: "-p appflowy-history" - test_service: "appflowy_worker" test_cmd: "-p appflowy-worker" + - test_service: "admin_frontend" + test_cmd: "-p admin_frontend" steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable @@ -113,7 +118,7 @@ jobs: export APPFLOWY_ADMIN_FRONTEND_VERSION=${GITHUB_SHA} docker compose -f docker-compose-ci.yml up -d docker ps -a - + container_id=$(docker ps --filter name=appflowy-cloud-ai-1 -q) if [ -n "$container_id" ]; then echo "Displaying logs for the AppFlowy-AI container..." @@ -122,7 +127,7 @@ jobs: echo "No running container found to display logs." fi - - name: install prerequisites + - name: Install prerequisites run: | sudo apt-get update sudo apt-get install protobuf-compiler @@ -131,7 +136,6 @@ jobs: run: | echo "Running tests for ${{ matrix.test_service }} with flags: ${{ matrix.test_cmd }}" RUST_LOG="info" DISABLE_CI_TEST_LOG="true" cargo test ${{ matrix.test_cmd }} - RUST_LOG="info" DISABLE_CI_TEST_LOG="true" cargo test -p admin_frontend ${{ matrix.test_cmd }} cleanup: name: Cleanup Docker Images diff --git a/src/api/workspace.rs b/src/api/workspace.rs index 6e78ffe3..d1a6a86a 100644 --- a/src/api/workspace.rs +++ b/src/api/workspace.rs @@ -1392,6 +1392,7 @@ async fn post_published_duplicate_handler( params.dest_view_id, ) .await?; + Ok(Json(AppResponse::Ok())) }