Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed Dec 3, 2023
1 parent 694d74f commit 4f52f56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
run: mix test
env:
STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }}
2 changes: 1 addition & 1 deletion test/statix_test.exs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4f52f56

Please sign in to comment.