Skip to content

Release v2.1.1

Release v2.1.1 #975

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
format:
name: Format
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 26.2
elixir-version: 1.16.1
version-type: strict
- name: Install dependencies
run: mix deps.get
- name: Check mix format
run: mix format --check-formatted
test:
name: Test
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
pair:
# - erlang: master
# elixir: main
- erlang: 26.2
elixir: 1.16.1
- erlang: 25.3
elixir: 1.15.7
- erlang: 25.3
elixir: 1.14.5
- erlang: 25.3
elixir: 1.13.4
- erlang: 24.3
elixir: 1.12.3
- erlang: 23.3
elixir: 1.11.3
- erlang: 23.3
elixir: 1.10.4
- erlang: 22.3
elixir: 1.9.4
- erlang: 21.3
elixir: 1.8.1
- erlang: 21.3
elixir: 1.7.2
- erlang: 21.3
elixir: 1.6.6
env:
HEXPM_OTP: OTP-26.2
HEXPM_ELIXIR: v1.16.1
HEXPM_PATH: hexpm
HEXPM_ELIXIR_PATH: hexpm_elixir
HEXPM_OTP_PATH: hexpm_otp
HEXPM_MIX_HOME: hexpm_mix
HEXPM_MIX_ARCHIVES: hexpm_mix
steps:
- uses: actions/checkout@v3
- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.erlang}}
elixir-version: ${{matrix.pair.elixir}}
version-type: strict
- name: Install OTP and Elixir for hexpm
run: |
wget https://repo.hex.pm/builds/otp/ubuntu-20.04/${HEXPM_OTP}.tar.gz
mkdir -p ${HEXPM_OTP_PATH}
tar -xf ${HEXPM_OTP}.tar.gz -C ${HEXPM_OTP_PATH} --strip-components=1
${HEXPM_OTP_PATH}/Install -minimal $(pwd)/${HEXPM_OTP_PATH}
wget https://repo.hex.pm/builds/elixir/${HEXPM_ELIXIR}.zip
unzip -d ${HEXPM_ELIXIR_PATH} ${HEXPM_ELIXIR}.zip
mkdir -p ${HEXPM_MIX_HOME}
PATH=$(pwd)/${HEXPM_ELIXIR_PATH}/bin:$(pwd)/${HEXPM_OTP_PATH}/bin:${PATH} MIX_HOME=$(pwd)/${HEXPM_MIX_HOME} MIX_ARCHIVES=$(pwd)/${HEXPM_MIX_HOME} mix local.hex --force
PATH=$(pwd)/${HEXPM_ELIXIR_PATH}/bin:$(pwd)/${HEXPM_OTP_PATH}/bin:${PATH} MIX_HOME=$(pwd)/${HEXPM_MIX_HOME} MIX_ARCHIVES=$(pwd)/${HEXPM_MIX_HOME} mix local.rebar --force
- name: Set up hexpm
run: |
git clone https://github.com/hexpm/hexpm.git hexpm
cd hexpm; PATH=$(pwd)/../${HEXPM_ELIXIR_PATH}/bin:$(pwd)/../${HEXPM_OTP_PATH}/bin:${PATH} MIX_HOME=$(pwd)/../${HEXPM_MIX_HOME} MIX_ARCHIVES=$(pwd)/../${HEXPM_MIX_HOME} MIX_ENV=hex ../${HEXPM_ELIXIR_PATH}/bin/mix deps.get; cd ..
cd hexpm; PATH=$(pwd)/../${HEXPM_ELIXIR_PATH}/bin:$(pwd)/../${HEXPM_OTP_PATH}/bin:${PATH} MIX_HOME=$(pwd)/../${HEXPM_MIX_HOME} MIX_ARCHIVES=$(pwd)/../${HEXPM_MIX_HOME} MIX_ENV=hex ../${HEXPM_ELIXIR_PATH}/bin/mix compile; cd ..
- name: Install dependencies
run: |
sudo rm -rf /usr/local/bin/rebar3
mix deps.get
mix deps.compile
- name: Run tests
run: mix test