From 7231ff7e2a26bc1bd6cbafe1093f49f289ac4f47 Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Wed, 28 Feb 2024 19:18:42 +0800 Subject: [PATCH] fix: ci: expose minio port for file storage test --- .github/workflows/integration_test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 9b88eacd..79f6b2e3 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -40,14 +40,14 @@ jobs: sed -i 's/GOTRUE_EXTERNAL_GOOGLE_ENABLED=.*/GOTRUE_EXTERNAL_GOOGLE_ENABLED=true/' .env sed -i 's/GOTRUE_MAILER_AUTOCONFIRM=.*/GOTRUE_MAILER_AUTOCONFIRM=false/' .env sed -i 's/API_EXTERNAL_URL=http:\/\/your-host/API_EXTERNAL_URL=http:\/\/localhost/' .env - # expose port for sqlx tests + # expose port for tests (postgres, minio) sed -i '38s/$/\n ports:\n - 5432:5432/' docker-compose.yml + sed -i '26s/$/\n ports:\n - 9000:9000/' docker-compose.yml - name: Update Nginx Configuration run: | # the wasm-pack headless tests will run on random ports, so we need to allow all origins sed -i 's/http:\/\/127\.0\.0\.1:8000/http:\/\/127.0.0.1/g' nginx/nginx.conf - - name: Disable appflowyinc images run: | @@ -71,7 +71,6 @@ jobs: - name: Run WASM tests working-directory: ./libs/wasm-test - run: | + run: | cargo install wasm-pack wasm-pack test --headless --firefox -