Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,45 @@ jobs:
fail-fast: false
matrix:
include:
- elixir: "1.18.1"
otp: "27.2"
- elixir: "1.19"
otp: "28"
lint: lint
- elixir: "1.17.3"
otp: "27.1"
- elixir: "1.17.3"
otp: "25.0.4"
- elixir: "1.14.5"
otp: "24.3.4.17"
- elixir: "1.14"
otp: "24"

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Install Elixir and Erlang
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}

- name: Restore deps and _build cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-

- name: Install dependencies
run: mix deps.get

- name: Compile deps
run: mix deps.compile

- name: Check unused dependencies
run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- name: Compile lint
run: mix compile --warning-as-errors
if: ${{ matrix.lint }}

- name: Run tests
run: mix test

Expand All @@ -68,11 +70,11 @@ jobs:
fail-fast: false
matrix:
elixirbase:
- "1.17.3-erlang-27.1-alpine-3.17.9"
- "1.17.3-erlang-25.0.4-alpine-3.17.9"
- "1.14.5-erlang-23.3.4.20-alpine-3.16.9"
# search by tag from https://hub.docker.com/r/hexpm/elixir
- "1.19.3-erlang-28.2-alpine-3.22.2"
- "1.14.5-erlang-24.3.4.17-alpine-3.22.2"
steps:
- uses: earthly/actions-setup@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: ecto integration-test under ${{matrix.elixirbase}}
run: earthly -P --ci --build-arg ELIXIR_BASE=${{matrix.elixirbase}} +integration-test
Loading