|
1 | | -name: Auth-React Tests |
| 1 | +name: Auth-React Tests - L1 |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | pull_request: |
|
10 | 10 | branches: |
11 | 11 | - master |
12 | 12 | - "v[0-9]+.[0-9]+" |
13 | | - - "ci/github-actions/auth-react/v0.48.0" # TODO: Remove this |
| 13 | + - "ci/github-actions/auth-react/v0.49.0" # TODO: Remove this |
14 | 14 | tags: |
15 | 15 | - "(dev-)?v[0-9]+.[0-9]+.[0-9]+" |
16 | 16 |
|
|
33 | 33 | fail-fast: true |
34 | 34 | matrix: |
35 | 35 | # fdi-version: ${{ fromJSON(needs.define-versions.outputs.fdiVersions) }} |
36 | | - fdi-version: ["4.0"] |
| 36 | + fdi-version: ["4.1", "3.1"] |
37 | 37 |
|
38 | 38 | outputs: |
39 | 39 | AUTH_REACT__LOG_DIR: ${{ steps.envs.outputs.AUTH_REACT__LOG_DIR }} |
@@ -62,43 +62,22 @@ jobs: |
62 | 62 | fdi-version: ${{ matrix.fdi-version }} |
63 | 63 | use-common-app-and-test-server: "true" |
64 | 64 |
|
65 | | - test: |
66 | | - runs-on: ubuntu-latest |
| 65 | + launch-test-workflow: |
| 66 | + uses: ./.github/workflows/auth-react-test-2.yml |
67 | 67 | needs: setup-auth-react |
68 | | - |
| 68 | + name: FDI ${{ matrix.fdi-version }} |
69 | 69 | strategy: |
70 | | - max-parallel: 10 |
71 | | - fail-fast: false |
| 70 | + max-parallel: 1 # This is important to avoid ddos GHA API |
| 71 | + fail-fast: false # Don't fail fast to avoid locking TF State |
72 | 72 | matrix: |
73 | 73 | # fdi-version: ${{ fromJSON(needs.define-versions.outputs.fdiVersions) }} |
74 | | - fdi-version: ["4.0"] |
75 | | - spec: ${{ fromJSON(needs.setup-auth-react.outputs.specs) }} |
76 | | - |
77 | | - env: |
78 | | - SUPERTOKENS_CORE_PORT: 3567 |
79 | | - SUPERTOKENS_CORE_HOST: localhost |
80 | | - TEST_MODE: testing |
81 | | - # Auth react setup envs |
| 74 | + fdi-version: ["4.1", "3.1"] |
| 75 | + with: |
| 76 | + fdi-version: ${{ matrix.fdi-version }} |
| 77 | + specs: ${{ needs.setup-auth-react.outputs.specs }} |
82 | 78 | AUTH_REACT__LOG_DIR: ${{ needs.setup-auth-react.outputs.AUTH_REACT__LOG_DIR }} |
83 | 79 | AUTH_REACT__SCREENSHOT_DIR: ${{ needs.setup-auth-react.outputs.AUTH_REACT__SCREENSHOT_DIR }} |
| 80 | + AUTH_REACT__APP_SERVER: ${{ needs.setup-auth-react.outputs.AUTH_REACT__APP_SERVER }} |
84 | 81 | AUTH_REACT__NODE_PORT: ${{ needs.setup-auth-react.outputs.AUTH_REACT__NODE_PORT }} |
85 | | - AUTH_REACT__APP_SERVER: ${{ needs.setup-auth-react.outputs.AUTH_REACT__NODE_PORT }} |
86 | 82 | AUTH_REACT__TEST_MODE: ${{ needs.setup-auth-react.outputs.AUTH_REACT__TEST_MODE }} |
87 | 83 | AUTH_REACT__PORT: ${{ needs.setup-auth-react.outputs.AUTH_REACT__PORT }} |
88 | | - |
89 | | - steps: |
90 | | - - uses: actions/checkout@v4 |
91 | | - with: |
92 | | - path: supertokens-auth-react |
93 | | - |
94 | | - - name: Start core |
95 | | - run: docker compose up --wait |
96 | | - working-directory: supertokens-auth-react |
97 | | - |
98 | | - - uses: supertokens/auth-react-testing-action@main |
99 | | - name: test ${{ matrix.spec }} for ${{ matrix.fdi-version }} |
100 | | - with: |
101 | | - fdi-version: ${{ matrix.fdi-version }} |
102 | | - check-name-suffix: "[FDI=${{ matrix.fdi-version }}][Spec=${{ matrix.spec }}]" |
103 | | - path: supertokens-auth-react |
104 | | - spec: ${{ matrix.spec }} |
0 commit comments