Skip to content

Minor maintenance updates #50

Minor maintenance updates

Minor maintenance updates #50

Workflow file for this run

---
name: Erlang CI
"on": [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
include:
- otp: 23
rebar: 3.18
os: ubuntu-20.04
- otp: 24
rebar: 3.22
os: ubuntu-22.04
- otp: 25
rebar: 3.22
os: ubuntu-22.04
- otp: 26
rebar: 3.22
os: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
id: setup-beam
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar}}
- name: Restore _build
uses: actions/cache@v3
with:
path: _build
key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- name: Restore rebar3's cache
uses: actions/cache@v3
with:
path: ~/.cache/rebar3
key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
- name: Compile
run: ERL_FLAGS="-enable-feature all" rebar3 compile
- name: Format check
run: ERL_FLAGS="-enable-feature all" rebar3 format --verify
- name: Run tests and verifications (features not enabled)
run: rebar3 test
- name: Run tests and verifications (features enabled)
run: ERL_FLAGS="-enable-feature all" rebar3 test
- name: Build documentation
run: rebar3 ex_doc
if: ${{matrix.otp != 23}}