Skip to content

Replace type bitstring() with binary() #65

Replace type bitstring() with binary()

Replace type bitstring() with binary() #65

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- master
jobs:
ci:
strategy:
fail-fast: false
matrix:
include: # See https://www.erlang-solutions.com/downloads/
- otp-version: 25.0.3
platform: ubuntu-20.04
lsb_release: focal
- otp-version: 24.3.3
platform: ubuntu-20.04
lsb_release: focal
- otp-version: 23.3.4.5
platform: ubuntu-20.04
lsb_release: focal
rebar3-version: '3.20.0'
- otp-version: 22.3.4.9
platform: ubuntu-20.04
lsb_release: focal
rebar3-version: '3.15.2'
- otp-version: 21.3.8.17
platform: ubuntu-20.04
lsb_release: focal
rebar3-version: '3.15.2'
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Hex packages
uses: actions/cache@v2
with:
path: ~/.cache/rebar3/hex/hexpm/packages
key: ${{ runner.os }}-hex-${{ hashFiles('**/rebar.lock') }}
restore-keys: ${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
uses: actions/cache@v2
with:
path: ~/.cache/rebar3/rebar3_*_plt
key: ${{ runner.os }}-${{ matrix.otp-version }}-dialyzer-${{ hashFiles('**/rebar.config') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp-version }}-dialyzer-
- name: Install Erlang/OTP
run: |
DEB_NAME="esl-erlang_${{ matrix.otp-version }}-1~ubuntu~${{ matrix.lsb_release }}_amd64.deb"
curl -f https://packages.erlang-solutions.com/erlang/debian/pool/$DEB_NAME -o $DEB_NAME
sudo dpkg --install $DEB_NAME
- name: Install compatible rebar3 version
if: ${{ matrix.rebar3-version }}
run: |
git clone https://github.com/erlang/rebar3.git
cd rebar3 && git checkout ${{ matrix.rebar3-version }} && ./bootstrap && ./rebar3 local install
echo "$HOME/.cache/rebar3/bin" >> $GITHUB_PATH
- name: Install elvis
run: |
git clone --depth 1 --branch 1.1.0 https://github.com/inaka/elvis.git
cd elvis && rebar3 escriptize && sudo cp _build/default/bin/elvis /usr/local/bin/
- name: Build and test
run: |
make compile
make start # Start and join clusters
sleep 5
make status
make test
make stop # Stop cluster
make cover
- name: Run checks
run: |
make elvis
make xref
make dialyzer
- name: Generate docs
run: |
make edoc
git diff --exit-code ./doc || echo "** Please commit your changes from 'make edoc' **"