Merge pull request #976 from AppFlowy-IO/ci/admin-frontend
chore: add admin frontend to test matrix
This commit is contained in:
commit
82a3b01901
|
|
@ -44,20 +44,23 @@ jobs:
|
||||||
- name: Build Docker Images
|
- name: Build Docker Images
|
||||||
run: |
|
run: |
|
||||||
export DOCKER_DEFAULT_PLATFORM=linux/amd64
|
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
|
- name: Push docker images to docker hub
|
||||||
run: |
|
run: |
|
||||||
docker tag appflowyinc/appflowy_cloud appflowyinc/appflowy_cloud:${GITHUB_SHA}
|
docker tag appflowyinc/appflowy_cloud appflowyinc/appflowy_cloud:${GITHUB_SHA}
|
||||||
docker tag appflowyinc/appflowy_history appflowyinc/appflowy_history:${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/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
|
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin
|
||||||
docker push appflowyinc/appflowy_cloud:${GITHUB_SHA}
|
docker push appflowyinc/appflowy_cloud:${GITHUB_SHA}
|
||||||
docker push appflowyinc/appflowy_history:${GITHUB_SHA}
|
docker push appflowyinc/appflowy_history:${GITHUB_SHA}
|
||||||
docker push appflowyinc/appflowy_worker:${GITHUB_SHA}
|
docker push appflowyinc/appflowy_worker:${GITHUB_SHA}
|
||||||
|
docker push appflowyinc/admin_frontend:${GITHUB_SHA}
|
||||||
APPFLOWY_HISTORY_VERSION=${GITHUB_SHA}
|
APPFLOWY_HISTORY_VERSION=${GITHUB_SHA}
|
||||||
APPFLOWY_WORKER_VERSION=${GITHUB_SHA}
|
APPFLOWY_WORKER_VERSION=${GITHUB_SHA}
|
||||||
APPFLOWY_CLOUD_VERSION=${GITHUB_SHA}
|
APPFLOWY_CLOUD_VERSION=${GITHUB_SHA}
|
||||||
|
APPFLOWY_ADMIN_FRONTEND_VERSION=${GITHUB_SHA}
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Integration Tests
|
name: Integration Tests
|
||||||
|
|
@ -72,6 +75,8 @@ jobs:
|
||||||
test_cmd: "-p appflowy-history"
|
test_cmd: "-p appflowy-history"
|
||||||
- test_service: "appflowy_worker"
|
- test_service: "appflowy_worker"
|
||||||
test_cmd: "-p appflowy-worker"
|
test_cmd: "-p appflowy-worker"
|
||||||
|
- test_service: "admin_frontend"
|
||||||
|
test_cmd: "-p admin_frontend"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
@ -122,7 +127,7 @@ jobs:
|
||||||
echo "No running container found to display logs."
|
echo "No running container found to display logs."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: install prerequisites
|
- name: Install prerequisites
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install protobuf-compiler
|
sudo apt-get install protobuf-compiler
|
||||||
|
|
@ -131,7 +136,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Running tests for ${{ matrix.test_service }} with flags: ${{ matrix.test_cmd }}"
|
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 ${{ matrix.test_cmd }}
|
||||||
RUST_LOG="info" DISABLE_CI_TEST_LOG="true" cargo test -p admin_frontend ${{ matrix.test_cmd }}
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup Docker Images
|
name: Cleanup Docker Images
|
||||||
|
|
|
||||||
|
|
@ -1392,6 +1392,7 @@ async fn post_published_duplicate_handler(
|
||||||
params.dest_view_id,
|
params.dest_view_id,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(Json(AppResponse::Ok()))
|
Ok(Json(AppResponse::Ok()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue