From 66893247b4bde173bad50b888893d4b428cceac2 Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Fri, 24 Jan 2025 15:26:58 -0800 Subject: [PATCH] Use Elixir 1.18; drop support for Elixir 1.15 --- .github/workflows/tests.yml | 51 ++++++++++++++++--------------------- .tool-versions | 6 ++--- CHANGELOG.md | 4 +-- mix.exs | 2 +- 4 files changed, 28 insertions(+), 35 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 190021f..2719edb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,11 +14,11 @@ jobs: matrix: include: - pair: - elixir: 1.15.8 - otp: 25.3.2.12 + elixir: 1.16 + otp: 25 - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Build Test runs-on: ubuntu-22.04 env: @@ -31,7 +31,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -59,11 +58,11 @@ jobs: matrix: include: - pair: - elixir: 1.15.8 - otp: 25.3.2.12 + elixir: 1.16 + otp: 25 - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Build Dev runs-on: ubuntu-22.04 env: @@ -76,7 +75,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -104,11 +102,11 @@ jobs: matrix: include: - pair: - elixir: 1.15.8 - otp: 25.3.2.12 + elixir: 1.16 + otp: 25 - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Test needs: build_test runs-on: ubuntu-22.04 @@ -136,7 +134,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -156,11 +153,11 @@ jobs: matrix: include: - pair: - elixir: 1.15.8 - otp: 25.3.2.12 + elixir: 1.16 + otp: 25 - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Credo + Dialyxir needs: build_test runs-on: ubuntu-22.04 @@ -174,7 +171,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -202,8 +198,8 @@ jobs: matrix: include: - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Docs needs: build_dev runs-on: ubuntu-22.04 @@ -217,7 +213,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -237,8 +232,8 @@ jobs: matrix: include: - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Audit needs: build_dev runs-on: ubuntu-22.04 @@ -252,7 +247,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: @@ -284,8 +278,8 @@ jobs: matrix: include: - pair: - elixir: 1.17.3 - otp: 27.0 + elixir: 1.18 + otp: 27 name: Publish to Hex if: github.ref == 'refs/heads/main' needs: @@ -301,7 +295,6 @@ jobs: with: elixir-version: ${{ matrix.pair.elixir }} otp-version: ${{ matrix.pair.otp }} - version-type: strict - name: Cache deps uses: actions/cache@v4 with: diff --git a/.tool-versions b/.tool-versions index 8c2f624..89d882d 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ -elixir 1.17.3-otp-27 -erlang 27.1.2 -postgres 17.0 +elixir 1.18.2-otp-27 +erlang 27.2.1 +postgres 17.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 629761e..c1dcea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ ## Unreleased -- require Elixir 1.15 or greater -- test against the latest version of Erlang and Elixir +- Test against Elixir 1.18. +- **Breaking change:** drop support for Elixir 1.15. ## 2.0.0 diff --git a/mix.exs b/mix.exs index 31c003e..6dc4637 100644 --- a/mix.exs +++ b/mix.exs @@ -25,7 +25,7 @@ defmodule EctoEmail.MixProject do description: "An Ecto.Type for email address fields", dialyzer: dialyzer(), docs: docs(), - elixir: "~> 1.15", + elixir: "~> 1.16", elixirc_paths: elixirc_paths(Mix.env()), homepage_url: @scm_url, name: "EctoEmail",