From 12c760af6a96a62db3380a27472c8c9a986ab936 Mon Sep 17 00:00:00 2001 From: James Harton <59449+jimsynz@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:11:21 +1300 Subject: [PATCH] chore(CI): Update Elixir/Erlang compatibility matrix. (#18) * chore(CI): Update Elixir/Erlang compatibility matrix. * chore: Run Elixir 1.15 formatter. --- .github/workflows/mix_credo.yml | 4 ++-- .github/workflows/mix_doctor.yml | 4 ++-- .github/workflows/mix_format.yml | 4 ++-- .github/workflows/mix_git_ops.yml | 4 ++-- .github/workflows/mix_hex_audit.yml | 4 ++-- .github/workflows/mix_test.yml | 4 ++-- lib/buildkite_test_collector/tracing.ex | 2 +- test/support/exunit_data_helpers.ex | 6 +++--- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/mix_credo.yml b/.github/workflows/mix_credo.yml index 7298437..f6a09de 100644 --- a/.github/workflows/mix_credo.yml +++ b/.github/workflows/mix_credo.yml @@ -12,8 +12,8 @@ jobs: MIX_ENV: test strategy: matrix: - elixir: [1.13.4] - otp: [24.3.4] + elixir: [1.15.7] + otp: [26.1.2] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/mix_doctor.yml b/.github/workflows/mix_doctor.yml index d93536a..1755b46 100644 --- a/.github/workflows/mix_doctor.yml +++ b/.github/workflows/mix_doctor.yml @@ -12,8 +12,8 @@ jobs: MIX_ENV: test strategy: matrix: - elixir: [1.13.4] - otp: [24.3.4] + elixir: [1.15.7] + otp: [26.1.2] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/mix_format.yml b/.github/workflows/mix_format.yml index 8421cef..7cfdbbb 100644 --- a/.github/workflows/mix_format.yml +++ b/.github/workflows/mix_format.yml @@ -12,8 +12,8 @@ jobs: MIX_ENV: test strategy: matrix: - elixir: [1.13.4] - otp: [24.3.4] + elixir: [1.15.7] + otp: [26.1.2] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/mix_git_ops.yml b/.github/workflows/mix_git_ops.yml index 56c012b..35582b7 100644 --- a/.github/workflows/mix_git_ops.yml +++ b/.github/workflows/mix_git_ops.yml @@ -12,8 +12,8 @@ jobs: - uses: actions/checkout@v2 - uses: erlef/setup-beam@v1 with: - elixir-version: "1.13.4" - otp-version: "24.3.4" + elixir-version: "1.15.7" + otp-version: "26.1.2" - name: Retrieve Mix Dependencies Cache uses: actions/cache@v1 id: mix-cache diff --git a/.github/workflows/mix_hex_audit.yml b/.github/workflows/mix_hex_audit.yml index f40f07e..5a13ba5 100644 --- a/.github/workflows/mix_hex_audit.yml +++ b/.github/workflows/mix_hex_audit.yml @@ -11,8 +11,8 @@ jobs: MIX_ENV: test strategy: matrix: - elixir: [1.13.4] - otp: [24.3.4] + elixir: [1.15.7] + otp: [26.1.2] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/mix_test.yml b/.github/workflows/mix_test.yml index e185765..7544e4d 100644 --- a/.github/workflows/mix_test.yml +++ b/.github/workflows/mix_test.yml @@ -13,8 +13,8 @@ jobs: BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }} strategy: matrix: - elixir: [1.13.4] - otp: [24.3.4] + elixir: [1.15.7] + otp: [26.1.2] steps: - uses: actions/checkout@v2 diff --git a/lib/buildkite_test_collector/tracing.ex b/lib/buildkite_test_collector/tracing.ex index c4362ae..d938ca2 100644 --- a/lib/buildkite_test_collector/tracing.ex +++ b/lib/buildkite_test_collector/tracing.ex @@ -58,7 +58,7 @@ defmodule BuildkiteTestCollector.Tracing do end ``` """ - @spec measure(tags, section, nil | String.t(), (() -> result)) :: result when result: any + @spec measure(tags, section, nil | String.t(), (-> result)) :: result when result: any def measure(%{module: module, test: name} = _tags, section, detail \\ nil, callable) when is_function(callable, 0) do start_at = Instant.now() diff --git a/test/support/exunit_data_helpers.ex b/test/support/exunit_data_helpers.ex index 132cb16..00e7c8e 100644 --- a/test/support/exunit_data_helpers.ex +++ b/test/support/exunit_data_helpers.ex @@ -51,7 +51,7 @@ defmodule BuildkiteTestCollector.ExUnitDataHelpers do }, [ {FailingTest, :"test failing", 1, - [file: 'test/support/fixture_tests/failing_test.exs', line: 6]} + [file: ~c"test/support/fixture_tests/failing_test.exs", line: 6]} ]} ]}, tags: %{ @@ -113,12 +113,12 @@ defmodule BuildkiteTestCollector.ExUnitDataHelpers do [ {InvalidTest, :__ex_unit_setup_all_0, 1, [ - file: 'test/support/fixture_tests/invalid_test.exs', + file: ~c"test/support/fixture_tests/invalid_test.exs", line: 6, error_info: %{module: Exception} ]}, {InvalidTest, :__ex_unit__, 2, - [file: 'test/support/fixture_tests/invalid_test.exs', line: 1]} + [file: ~c"test/support/fixture_tests/invalid_test.exs", line: 1]} ]} ]}, tests: [