diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index a84c53136..bb4ce3559 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -20,9 +20,19 @@ jobs: strategy: matrix: mix_env: ['test', 'small_test'] - postgres_image: ['postgres:15', 'postgres:16'] + postgres_image: ['postgres:16'] + test_experimental_reduced_joins: '0' + include: + - mix_env: 'test' + postgres_image: 'postgres:15' + test_experimental_reduced_joins: '0' + - mix_env: 'test' + postgres_image: 'postgres:16' + test_experimental_reduced_joins: '1' + env: MIX_ENV: ${{ matrix.mix_env }} + TEST_EXPERIMENTAL_REDUCED_JOINS: ${{ matrix.test_experimental_reduced_joins }} services: postgres: image: ${{ matrix.postgres_image }} @@ -132,4 +142,4 @@ jobs: - run: mix format --check-formatted - run: mix deps.unlock --check-unused - run: mix credo diff --from-git-merge-base origin/master - - run: mix dialyzer + - run: mix dialyzer diff --git a/test/test_helper.exs b/test/test_helper.exs index 78171693a..fe6618d3a 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -13,3 +13,10 @@ else IO.puts("Test mode: FULL") ExUnit.configure(exclude: [:slow, :minio, :small_build_only]) end + +# Temporary flag to test `experimental_reduced_joins` flag on all tests. +if System.get_env("TEST_EXPERIMENTAL_REDUCED_JOINS") == "1" do + FunWithFlags.enable(:experimental_reduced_joins) +else + FunWithFlags.disable(:experimental_reduced_joins) +end