Skip to content

Commit

Permalink
chore: allow elixir 1.9+, test min & max supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
grossvogel committed May 31, 2024
1 parent 0fb375a commit b631bae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Test
on: [push, workflow_call]

env:
OTP_VERSION_SPEC: "25.3"
ELIXIR_VERSION_SPEC: "1.13.4"
MIX_ENV: test
PGUSER: postgres
POSTGRES_USER: postgres
Expand All @@ -14,7 +12,15 @@ env:

jobs:
test:
name: Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- otp: "22"
elixir: "1.9"
- otp: "26"
elixir: "1.16"
services:
postgres:
env:
Expand All @@ -27,17 +33,18 @@ jobs:
--health-timeout 5s --health-retries 5
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION_SPEC }}
elixir-version: ${{ env.ELIXIR_VERSION_SPEC }}
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- name: Run Tests
run: |
mix deps.get
cp config/test.exs.GH_actions config/test.exs
mix ecto.create
mix test
- name: Run Tests
run: |
mix deps.get
cp config/test.exs.GH_actions config/test.exs
mix ecto.create
mix test
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule EctoSoftDelete.Mixfile do
[
app: :ecto_soft_delete,
version: "2.0.3",
elixir: "~> 1.13.4",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit b631bae

Please sign in to comment.