This adds valid licenses for test. #988
Workflow file for this run
This file contains 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, pull_request] | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install OTP and Elixir | |
uses: erlef/[email protected] | |
with: | |
otp-version: 24 | |
elixir-version: 1.12 | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Check mix format | |
run: mix format --check-formatted | |
test: | |
name: Test | |
runs-on: ubuntu-18.04 | |
services: | |
postgres: | |
image: postgres:9.6 | |
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: 1.11.3 | |
- erlang: 23.1 | |
elixir: master | |
- erlang: 23.1 | |
elixir: 1.11.3 | |
- erlang: 23.1 | |
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 | |
- erlang: 20.3 | |
elixir: 1.5.3 | |
- erlang: 20.2 | |
elixir: 1.4.5 | |
- erlang: 19.3 | |
elixir: 1.3.4 | |
- erlang: 19.3 | |
elixir: 1.2.6 | |
- erlang: 18.3 | |
elixir: 1.1.1 | |
- erlang: 17.5 | |
elixir: 1.0.5 | |
env: | |
HEXPM_OTP: OTP-23.1 | |
HEXPM_ELIXIR: v1.11.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@v1 | |
- name: Install OTP and Elixir | |
uses: erlef/[email protected] | |
with: | |
otp-version: ${{matrix.pair.erlang}} | |
elixir-version: ${{matrix.pair.elixir}} | |
- name: Install OTP and Elixir for hexpm | |
run: | | |
wget https://repo.hex.pm/builds/otp/ubuntu-16.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 |