[GH-ISSUE #3251] [FR] Enable supabase auth test #1429

Closed
opened 2026-03-23 20:49:05 +00:00 by mirror · 1 comment
Owner

Originally created by @appflowy on GitHub (Aug 22, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3251

Originally assigned to: @LucasXu0 on GitHub.

Description

At the moment, we haven't set up the env file in our CI, which means we can't build AppFlowy using cloud resources. Before we introduce the env file, we must update all existing integration tests that utilize await tester.tapGoButton(); to now use await tester.tapSignInAsGuest();

Below is the method I use to create the env file for Rust unit tests:"

      - name: Create .env file in flowy-test
        working-directory: frontend/rust-lib/flowy-test
        run: |
          touch .env.ci
          echo SUPABASE_URL=${{ secrets.SUPABASE_URL }} >> .env.ci
          echo SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }} >> .env.ci
          echo SUPABASE_JWT_SECRET=${{ secrets.SUPABASE_JWT_SECRET }} >> .env.ci

Impact

Integration tests

Additional Context

No response

Originally created by @appflowy on GitHub (Aug 22, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3251 Originally assigned to: @LucasXu0 on GitHub. ### Description At the moment, we haven't set up the env file in our CI, which means we can't build AppFlowy using cloud resources. Before we introduce the env file, we must update all existing integration tests that utilize await tester.tapGoButton(); to now use await tester.tapSignInAsGuest(); Below is the method I use to create the env file for Rust unit tests:" ```yaml - name: Create .env file in flowy-test working-directory: frontend/rust-lib/flowy-test run: | touch .env.ci echo SUPABASE_URL=${{ secrets.SUPABASE_URL }} >> .env.ci echo SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }} >> .env.ci echo SUPABASE_JWT_SECRET=${{ secrets.SUPABASE_JWT_SECRET }} >> .env.ci ``` ### Impact Integration tests ### Additional Context _No response_
Author
Owner

@appflowy commented on GitHub (Aug 22, 2023):

Also check this PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3250

<!-- gh-comment-id:1687470146 --> @appflowy commented on GitHub (Aug 22, 2023): Also check this PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3250
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1429
No description provided.