From 4f52f567293f472e47e24323a6611ce0b5f4ec71 Mon Sep 17 00:00:00 2001 From: Aleksei Magusev Date: Sun, 3 Dec 2023 03:25:54 -0800 Subject: [PATCH] WIP --- .github/workflows/ci.yml | 17 +++++++++++------ test/statix_test.exs | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) 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