Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
test: fix ci (#6657)
Nathan.fooocee0e2ed424a
diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yamlindex 041f31203b..2938a5fc43 100644--- a/.github/workflows/flutter_ci.yaml+++ b/.github/workflows/flutter_ci.yaml@@ -40,7 +40,7 @@ jobs:strategy:fail-fast: truematrix:- os: [ubuntu-latest]+ os: [ ubuntu-latest ]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -74,7 +74,7 @@ jobs:strategy:fail-fast: truematrix:- os: [windows-latest]+ os: [ windows-latest ]include:- os: windows-latestflutter_profile: development-windows-x86@@ -101,7 +101,7 @@ jobs:strategy:fail-fast: truematrix:- os: [macos-latest]+ os: [ macos-latest ]include:- os: macos-latestflutter_profile: development-mac-x86_64@@ -123,12 +123,12 @@ jobs:flutter_profile: ${{ matrix.flutter_profile }}unit_test:- needs: [prepare-linux]+ needs: [ prepare-linux ]if: github.event.pull_request.draft != truestrategy:fail-fast: falsematrix:- os: [ubuntu-latest]+ os: [ ubuntu-latest ]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -217,11 +217,11 @@ jobs:shell: bashcloud_integration_test:- needs: [prepare-linux]+ needs: [ prepare-linux ]strategy:fail-fast: falsematrix:- os: [ubuntu-latest]+ os: [ ubuntu-latest ]include:- os: ubuntu-latestflutter_profile: development-linux-x86_64@@ -262,9 +262,20 @@ jobs:elserunning_image=$(docker inspect --format='{{index .Config.Image}}' "$container_id")if [ "$running_image" != "appflowy-cloud:$APPFLOWY_CLOUD_VERSION" ]; then- echo "AppFlowy-Cloud is running with an incorrect version. Pulling the correct version..."- docker rm -f $(docker ps -aq)- docker volume rm $(docker volume ls -q)+ echo "AppFlowy-Cloud is running with an incorrect version. Restarting with the correct version..."+ # Remove all containers if any exist+ if [ "$(docker ps -aq)" ]; then+ docker rm -f $(docker ps -aq)+ else+ echo "No containers to remove."+ fi++ # Remove all volumes if any exist+ if [ "$(docker volume ls -q)" ]; then+ docker volume rm $(docker volume ls -q)+ else+ echo "No volumes to remove."+ fidocker compose pulldocker compose up -decho "Waiting for the container to be ready..."@@ -329,13 +340,13 @@ jobs:shell: bashintegration_test:- needs: [prepare-linux]+ needs: [ prepare-linux ]if: github.event.pull_request.draft != truestrategy:fail-fast: falsematrix:- os: [ubuntu-latest]- test_number: [1, 2, 3, 4, 5, 6, 7, 8]+ os: [ ubuntu-latest ]+ test_number: [ 1, 2, 3, 4, 5, 6, 7, 8 ]include:- os: ubuntu-latesttarget: "x86_64-unknown-linux-gnu"diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yamlindex d24b93663f..ec766113b4 100644--- a/.github/workflows/rust_ci.yaml+++ b/.github/workflows/rust_ci.yaml@@ -25,7 +25,7 @@ env:jobs:self-hosted-job:- if: github.event.pull_request.head.repo.full_name == github.repository+ if: github.event.pull_request.head.repo.full_name != github.repositoryruns-on: self-hostedsteps:- name: Checkout source code@@ -62,8 +62,6 @@ jobs:running_image=$(docker inspect --format='{{index .Config.Image}}' "$container_id")if [ "$running_image" != "appflowy-cloud:$APPFLOWY_CLOUD_VERSION" ]; thenecho "AppFlowy-Cloud is running with an incorrect version. Pulling the correct version..."- docker rm -f $(docker ps -aq)- docker volume rm $(docker volume ls -q)docker compose pulldocker compose up -decho "Waiting for the container to be ready..."@@ -149,8 +147,20 @@ jobs:APPFLOWY_HISTORY_VERSION: ${{ env.CLOUD_VERSION }}APPFLOWY_WORKER_VERSION: ${{ env.CLOUD_VERSION }}run: |- docker rm -f $(docker ps -aq)- docker volume rm $(docker volume ls -q)+ # Remove all containers if any exist+ if [ "$(docker ps -aq)" ]; then+ docker rm -f $(docker ps -aq)+ else+ echo "No containers to remove."+ fi++ # Remove all volumes if any exist+ if [ "$(docker volume ls -q)" ]; then+ docker volume rm $(docker volume ls -q)+ else+ echo "No volumes to remove."+ fi+docker compose pulldocker compose up -decho "Waiting for the container to be ready..."