Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

run tests only for postgres:18 (#5982)

Cenk Kücükb5519974fb23
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
index 21276f26e4..b00395580b 100644
--- a/.github/workflows/elixir.yml
+++ b/.github/workflows/elixir.yml
@@ -20,24 +20,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- mix_env: ["test"]
+ mix_env: ["test", "ce_test"]
postgres_image: ["postgres:18"]
mix_test_partition: [1, 2, 3, 4, 5, 6]
- include:
- - mix_env: "ce_test"
- postgres_image: "postgres:16"
- mix_test_partition: 1
- - mix_env: "ce_test"
- postgres_image: "postgres:16"
- mix_test_partition: 2
- - mix_env: "ce_test"
- postgres_image: "postgres:16"
- mix_test_partition: 3
- - mix_env: "ce_test"
- postgres_image: "postgres:16"
- mix_test_partition: 4
-
env:
MIX_ENV: ${{ matrix.mix_env }}
services:
@@ -128,7 +114,7 @@ jobs:
- run: |
- mix test --include slow --include migrations --max-failures 1 --warnings-as-errors --partitions 4 | tee test_output.log
+ mix test --include slow --include migrations --max-failures 1 --warnings-as-errors --partitions 6 | tee test_output.log
if grep -E '\.+[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3} \[[^]]+\]' test_output.log | grep -v 'libcluster'; then
echo "The tests are producing output, this usually indicates some error"
exit 1