From 9d4bee47cbce72b816d662da770554c50f4f399d Mon Sep 17 00:00:00 2001 From: dmitrykleymenov Date: Thu, 12 Feb 2026 09:55:24 +0300 Subject: [PATCH 1/5] Add version matrix to ci --- .github/workflows/{elixir.yml => ci.yml} | 32 +++++++++++++++++------- Makefile | 2 +- mix.exs | 5 +--- 3 files changed, 25 insertions(+), 14 deletions(-) rename .github/workflows/{elixir.yml => ci.yml} (52%) diff --git a/.github/workflows/elixir.yml b/.github/workflows/ci.yml similarity index 52% rename from .github/workflows/elixir.yml rename to .github/workflows/ci.yml index dea88d8..6b8141c 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Elixir CI +name: CI on: push: @@ -15,29 +15,43 @@ permissions: contents: read jobs: - build: + tests: name: build and test runs-on: ubuntu-latest env: MIX_ENV: test GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: + fail-fast: false + matrix: + include: + - elixir: "1.19.5" + otp: "28.3.1" + - elixir: "1.17.3" + otp: "25.0.4" + - elixir: "1.12.3" + otp: "24.3.4.17" + steps: - uses: actions/checkout@v4 - name: Set up Elixir uses: erlef/setup-beam@v1.20.4 with: - otp-version: 28.3.1 - elixir-version: 1.19.5 - - name: Restore dependencies cache + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + - name: Restore deps and _build cache uses: actions/cache@v3 with: - path: deps - key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: ${{ runner.os }}-mix- + path: | + deps + _build + key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}- - name: Install dependencies run: mix deps.get - name: Run tests - run: mix coveralls.github + run: make test-code - name: Check code run: make analyze-code diff --git a/Makefile b/Makefile index 5026d4a..43f6791 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .PHONY: test-code test-code: - mix cover.lint + mix coveralls.github .PHONY: analyze-code analyze-code: diff --git a/mix.exs b/mix.exs index 411dd0a..66b1717 100644 --- a/mix.exs +++ b/mix.exs @@ -60,10 +60,7 @@ defmodule ModuleResolver.MixProject do [ preferred_envs: [ cover: :test, - "cover.detail": :test, - "cover.html": :test, - "cover.filter": :test, - "cover.lint": :test, + "coveralls.github": :test, credo: :test, dialyzer: :test ] From 8710accdbf608b97841e658d6d8e6d7ec9cadc9d Mon Sep 17 00:00:00 2001 From: dmitrykleymenov Date: Thu, 12 Feb 2026 10:01:01 +0300 Subject: [PATCH 2/5] Fix indentation --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b8141c..7e912f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,11 +44,11 @@ jobs: uses: actions/cache@v3 with: path: | - deps - _build - key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}- + deps + _build + key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}- - name: Install dependencies run: mix deps.get - name: Run tests From c6b34dc703f703f8b58644aa937fceb1739c75b3 Mon Sep 17 00:00:00 2001 From: dmitrykleymenov Date: Thu, 12 Feb 2026 10:06:07 +0300 Subject: [PATCH 3/5] Upgrate version of erlang to use os certs --- .github/workflows/ci.yml | 4 ++-- mix.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e912f2..9ef7862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,8 @@ jobs: otp: "28.3.1" - elixir: "1.17.3" otp: "25.0.4" - - elixir: "1.12.3" - otp: "24.3.4.17" + - elixir: "1.13.4" + otp: "25.3.2.21" steps: - uses: actions/checkout@v4 diff --git a/mix.exs b/mix.exs index 66b1717..0027e59 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule ModuleResolver.MixProject do [ app: :module_resolver, version: "0.1.0", - elixir: "~> 1.12", + elixir: "~> 1.13.4", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), From fa62faf733ca3c3ca0bc111349f439bf51d143a8 Mon Sep 17 00:00:00 2001 From: dmitrykleymenov Date: Thu, 12 Feb 2026 10:07:46 +0300 Subject: [PATCH 4/5] Fix library supported elixir version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 0027e59..b64a725 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule ModuleResolver.MixProject do [ app: :module_resolver, version: "0.1.0", - elixir: "~> 1.13.4", + elixir: "~> 1.13", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), From 277e5b0352ce4e017786195fb8d42dcebfd6db4d Mon Sep 17 00:00:00 2001 From: dmitrykleymenov Date: Thu, 12 Feb 2026 10:11:03 +0300 Subject: [PATCH 5/5] Change erlang version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ef7862..ff9d628 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - elixir: "1.19.5" otp: "28.3.1" - elixir: "1.17.3" - otp: "25.0.4" + otp: "27.3.4.7" - elixir: "1.13.4" otp: "25.3.2.21"