Move to ex_doc -style documentation #144
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: Common Test | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
otp_version: [24, 25] | |
os: [ubuntu-22.04] | |
rebar3_version: [3.22] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
id: setup-beam | |
with: | |
otp-version: ${{ matrix.otp_version }} | |
rebar3-version: ${{ matrix.rebar3_version }} | |
- name: Restore _build | |
uses: actions/cache@v3 | |
with: | |
path: _build | |
key: "_build-cache-for\ | |
-os-${{ matrix.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-${{ matrix.os }}\ | |
-otp-${{ steps.setup-beam.outputs.otp-version }}\ | |
-rebar3-${{ steps.setup-beam.outputs.rebar3-version }}\ | |
-hash-${{ hashFiles('rebar.lock') }}" | |
- name: Compile | |
run: rebar3 compile | |
- name: XRef | |
run: rebar3 xref | |
- name: Dialyzer | |
run: rebar3 dialyzer | |
- name: Elvis | |
run: rebar3 lint | |
- name: Common Test | |
run: rebar3 do ct, cover | |
- name: Covertool | |
run: rebar3 covertool generate | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: _build/test/covertool/elli.covertool.xml | |
env_vars: OTP_VERSION | |
- name: Generate doc | |
run: rebar3 ex_doc |