From 61702aeda2c0c6287c08ee61df18aed4ecd0b60e Mon Sep 17 00:00:00 2001 From: Rock Date: Wed, 27 May 2026 10:04:41 +0200 Subject: [PATCH 1/4] Modernize actions --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00bb85d..5872b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,38 +8,48 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: MIX_ENV: test + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} strategy: fail-fast: false matrix: include: - - pair: - elixir: "1.11" - otp: "21" - - pair: - elixir: "1.18" - otp: "27" + # Minimum supported versions. + # OTP 24.2 is the earliest available on ubuntu-22.04. + # Elixir 1.12 is the earliest version compatible with OTP 24. + - elixir: "1.12" + otp: "24" + + # Latest versions. + - elixir: "1.19" + otp: "28" lint: lint steps: - - uses: actions/checkout@v4 + - name: Check out this repository + uses: actions/checkout@v6 - - uses: erlef/setup-beam@v1 + - name: Set up Erlang and Elixir + uses: erlef/setup-beam@v1 with: - otp-version: ${{matrix.pair.otp}} - elixir-version: ${{matrix.pair.elixir}} + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} - - uses: actions/cache@v4 + - name: Cache Mix dependencies + uses: actions/cache@v5 + id: cache-deps with: path: | deps _build - key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }} + key: | + mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}- + mix-${{ runner.os }}-${{matrix.elixir}}-${{matrix.otp}}- - - run: mix deps.get + - run: mix do deps.get --check-locked, deps.compile + if: steps.cache-deps.outputs.cache-hit != 'true' - run: mix format --check-formatted if: ${{ matrix.lint }} @@ -47,8 +57,6 @@ jobs: - run: mix deps.unlock --check-unused if: ${{ matrix.lint }} - - run: mix deps.compile - - run: mix compile --warnings-as-errors if: ${{ matrix.lint }} From 511f780a8e91bacdd3bfa064411d5275f10ec99d Mon Sep 17 00:00:00 2001 From: Rock Date: Wed, 27 May 2026 10:09:01 +0200 Subject: [PATCH 2/4] Bump to 1.13 minimum --- .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 5872b60..12aeaf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,8 @@ jobs: include: # Minimum supported versions. # OTP 24.2 is the earliest available on ubuntu-22.04. - # Elixir 1.12 is the earliest version compatible with OTP 24. - - elixir: "1.12" + # Elixir 1.13 is the minimum required by transitive dep :jose. + - elixir: "1.13" otp: "24" # Latest versions. diff --git a/mix.exs b/mix.exs index 3985b2a..6d2c4e8 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule BroadwayCloudPubSub.MixProject do [ app: :broadway_cloud_pub_sub, version: @version, - elixir: "~> 1.11", + elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env()), name: "BroadwayCloudPubSub", description: @description, From 65ad43009b61941550741fd8978c6f643c015d8b Mon Sep 17 00:00:00 2001 From: Rock Date: Wed, 27 May 2026 10:15:35 +0200 Subject: [PATCH 3/4] Elixir 1.15 --- .github/workflows/ci.yml | 6 ++---- mix.exs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12aeaf3..d9cd091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,8 @@ jobs: matrix: include: # Minimum supported versions. - # OTP 24.2 is the earliest available on ubuntu-22.04. - # Elixir 1.13 is the minimum required by transitive dep :jose. - - elixir: "1.13" - otp: "24" + - elixir: "1.15" + otp: "26" # Latest versions. - elixir: "1.19" diff --git a/mix.exs b/mix.exs index 6d2c4e8..dffb624 100644 --- a/mix.exs +++ b/mix.exs @@ -9,7 +9,7 @@ defmodule BroadwayCloudPubSub.MixProject do [ app: :broadway_cloud_pub_sub, version: @version, - elixir: "~> 1.13", + elixir: "~> 1.15", elixirc_paths: elixirc_paths(Mix.env()), name: "BroadwayCloudPubSub", description: @description, From 59fbfae36f593364a658ca21a7d24c5e567f01a2 Mon Sep 17 00:00:00 2001 From: Rock Date: Wed, 27 May 2026 10:39:37 +0200 Subject: [PATCH 4/4] Add unreleased to changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67da6b8..0b47580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed +- Bump minimum elixir to 1.15 +- Modernize github actions + ## [1.0.0] - 2026-05-26 ### Changed