Configure matrix of elixir versions #41
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
||
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 |