Skip to content

Configure matrix of elixir versions #41

Configure matrix of elixir versions

Configure matrix of elixir versions #41

Workflow file for this run

name: CI
on: [push]
jobs:
ecto30:
runs-on: ubuntu-latest
container:
image: elixir:1.9.1-slim
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ecto_network_test
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- name: Install dependencies
env:
LOCKFILE: mix.lock.ecto30
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run all tests
env:
LOCKFILE: mix.lock.ecto30
DATABASE_URL: "ecto://postgres:postgres@postgres/ecto_network_test"
run: mix test
ecto32:
strategy:
matrix:
elixir_version: [1.17, 1.16, 1.15, 1.14, 1.13]
runs-on: ubuntu-latest
container:
image: elixir:${{elixir_version}}

Check failure on line 40 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 40, Col: 14): Unrecognized named-value: 'elixir_version'. Located at position 1 within expression: elixir_version
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ecto_network_test
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- name: Install dependencies
env:
LOCKFILE: mix.lock
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run all tests
env:
LOCKFILE: mix.lock
DATABASE_URL: "ecto://postgres:postgres@postgres/ecto_network_test"
run: mix test