Skip to content

Release 0.4.2

Release 0.4.2 #70

Workflow file for this run

name: Elixir CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-20.04
strategy:
matrix:
iex: [ 1.14.3, 1.15.5 ]
otp: [ 24.3.4, 25.2, 26.0 ]
include:
- iex: 1.11.4
otp: 23.3.4
- iex: 1.13.3
otp: 23.3.4
# service containers to run
services:
# label used to access the service container
postgres:
# Docker Hub image
image: postgres:latest
# service environment variables
# `POSTGRES_HOST` is `postgres`
env:
# optional (defaults to `postgres`)
POSTGRES_DB: ecto_discriminator_repo_test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
# maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with:
elixir-version: ${{ matrix.iex }} # Define the elixir version [required]
otp-version: ${{ matrix.otp }} # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test