From 472b26af3cc5b63054561f56d00b750b366601f6 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 12 Mar 2026 02:31:33 +0000 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 40 +++++++++++++++++++++++++--------------- test/statix_test.exs | 10 +++++----- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c985db9..091177e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,26 +7,36 @@ on: pull_request: jobs: - lint: - name: Code linting - uses: lexmag/elixir-actions/.github/workflows/lint.yml@v2 - with: - otp-version: "24" - elixir-version: "1.14" - test: name: Test suite - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: - otp: ["24"] - elixir: ["1.14"] - runtime_config: [true, false] - include: - - otp: "20" - elixir: "1.6" + - otp: "24" + elixir: "1.15" + runtime_config: true + - otp: "24" + elixir: "1.15" + runtime_config: false + - otp: "25" + elixir: "1.15" + runtime_config: true + - otp: "25" + elixir: "1.15" + runtime_config: false + - otp: "25" + elixir: "1.18" + runtime_config: true + - otp: "25" + elixir: "1.18" + runtime_config: false + - otp: "28" + elixir: "1.18" + runtime_config: true + - otp: "28" + elixir: "1.18" runtime_config: false env: @@ -47,4 +57,4 @@ jobs: - name: Run tests run: mix test env: - STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }} \ No newline at end of file + STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }} diff --git a/test/statix_test.exs b/test/statix_test.exs index 077f0d9..9e87686 100644 --- a/test/statix_test.exs +++ b/test/statix_test.exs @@ -160,22 +160,22 @@ defmodule StatixTest do assert capture_log(fn -> assert {:error, :port_closed} == increment("sample") - end) =~ "counter metric \"sample\" lost value 1 error=:port_closed\n\e[0m" + end) =~ "counter metric \"sample\" lost value 1 error=:port_closed" assert capture_log(fn -> assert {:error, :port_closed} == decrement("sample") - end) =~ "counter metric \"sample\" lost value -1 error=:port_closed\n\e[0m" + end) =~ "counter metric \"sample\" lost value -1 error=:port_closed" assert capture_log(fn -> assert {:error, :port_closed} == gauge("sample", 2) - end) =~ "gauge metric \"sample\" lost value 2 error=:port_closed\n\e[0m" + end) =~ "gauge metric \"sample\" lost value 2 error=:port_closed" assert capture_log(fn -> assert {:error, :port_closed} == histogram("sample", 3) - end) =~ "histogram metric \"sample\" lost value 3 error=:port_closed\n\e[0m" + end) =~ "histogram metric \"sample\" lost value 3 error=:port_closed" assert capture_log(fn -> assert {:error, :port_closed} == timing("sample", 2.5) - end) =~ "timing metric \"sample\" lost value 2.5 error=:port_closed\n\e[0m" + end) =~ "timing metric \"sample\" lost value 2.5 error=:port_closed" end end