diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eb85fb..3896453 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,14 @@ jobs: strategy: matrix: - versions: + otp: "24" + elixir: "1.14" + runtime_config: [true, false] + + include: - otp: "20" elixir: "1.6" - - otp: "24" - elixir: "1.14" + runtime_config: false env: MIX_ENV: test @@ -28,11 +31,13 @@ jobs: - name: Set up Elixir environment uses: erlef/setup-beam@v1 with: - elixir-version: ${{ matrix.versions.elixir }} - otp-version: ${{ matrix.versions.otp }} + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} - name: Install dependencies run: mix deps.get --only test - name: Run tests - run: mix test \ No newline at end of file + run: mix test + env: + STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }} \ No newline at end of file diff --git a/test/statix_test.exs b/test/statix_test.exs index 6528f1a..6446b70 100644 --- a/test/statix_test.exs +++ b/test/statix_test.exs @@ -1,4 +1,4 @@ -runtime_config? = System.get_env("STATIX_TEST_RUNTIME_CONFIG") in ["1", "true"] +runtime_config? = IO.inspect(System.get_env("STATIX_TEST_RUNTIME_CONFIG"), label: "STATIX_TEST_RUNTIME_CONFIG") in ["1", "true"] defmodule StatixTest do use Statix.TestCase