Skip to content

Commit

Permalink
chore: Update OTP and Elixir versions in CI workflow to exclude incom…
Browse files Browse the repository at this point in the history
…patible versions
  • Loading branch information
njausteve committed Sep 14, 2024
1 parent 0173744 commit e50a0d7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/elixir-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
# Specify the OTP and Elixir versions to use when building
# and running the workflow steps.
matrix:
otp: ["26.2", "27.0"] # Define the OTP versions [required]
elixir: ["1.16", "1.17"] # Define the Elixir versions [required]
otp: ["25.x", "26.x", "27.x"] # Define the OTP versions [required]
elixir: ["1.16.x", "1.17.x"] # Define the Elixir versions [required]
exclude:
- otp: "27.x"
elixir: "1.16.x"
- otp: "25.x"
elixir: "1.17.x"
steps:
# Step: Setup Elixir + Erlang image as the base.
- name: Set up Elixir
Expand All @@ -50,7 +55,6 @@ jobs:
key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ env.cache-name }}-
# Step: Define how to cache the `_build` directory. After the first run,
# this speeds up tests runs a lot. This includes not re-compiling our
# project's downloaded deps every run.
Expand All @@ -65,7 +69,6 @@ jobs:
restore-keys: |
${{ runner.os }}-mix-${{ env.cache-name }}-
${{ runner.os }}-mix-
# Step: Conditionally bust the cache when job is re-run.
# Sometimes, we may have issues with incremental builds that are fixed by
# doing a full recompile. In order to not waste dev time on such trivial
Expand All @@ -86,7 +89,6 @@ jobs:
mix local.rebar --force
mix local.hex --force
mix deps.get
# Step: Compile the project treating any warnings as errors.
# Customize this step if a different behavior is desired.
- name: Compiles without warnings
Expand Down

0 comments on commit e50a0d7

Please sign in to comment.