Skip to content

Commit

Permalink
chore: Drop build matrix support for elixir 1.11, 1.12, 1.13 and OTP 22
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuhot committed Jul 7, 2024
1 parent 5e3b16b commit 4d2ce6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25']
elixir: ['1.13']
otp: ["26"]
elixir: ["1.16"]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
Expand Down Expand Up @@ -45,8 +45,8 @@ jobs:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 24
elixir-version: 1.13
otp-version: 26
elixir-version: 1.16
- uses: actions/cache@v2
with:
key: |
Expand All @@ -65,27 +65,17 @@ jobs:
name: Test (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
strategy:
matrix:
otp: ['22', '23', '24', '25', '26']
elixir: ['1.11', '1.12', '1.13', '1.14', '1.15', '1.16']
otp: ["23", "24", "25", "26"]
elixir: ["1.14", "1.15", "1.16"]
# Test each elixir version with lowest and highest compatible OTP version, exclude others
# See https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
exclude:
- {otp: '22', elixir: '1.14'}
- {otp: '22', elixir: '1.15'}
- {otp: '22', elixir: '1.16'}
- {otp: '23', elixir: '1.14'}
- {otp: '23', elixir: '1.15'}
- {otp: '23', elixir: '1.16'}
- {otp: '24', elixir: '1.11'}
- {otp: '24', elixir: '1.12'}
- {otp: '24', elixir: '1.13'}
- {otp: '24', elixir: '1.14'}
- {otp: '24', elixir: '1.15'}
- {otp: '25', elixir: '1.11'}
- {otp: '25', elixir: '1.12'}
- {otp: '25', elixir: '1.14'}
- {otp: '26', elixir: '1.11'}
- {otp: '26', elixir: '1.12'}
- {otp: '26', elixir: '1.13'}
- {otp: '26', elixir: '1.14'}
- { otp: "24", elixir: "1.14" }
- { otp: "25", elixir: "1.14" }
- { otp: "23", elixir: "1.15" }
- { otp: "25", elixir: "1.15" }
- { otp: "23", elixir: "1.16" }
- { otp: "25", elixir: "1.16" }
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule OpenApiSpex.Mixfile do
[
app: :open_api_spex,
version: @version,
elixir: "~> 1.11",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
Expand Down

0 comments on commit 4d2ce6d

Please sign in to comment.