Skip to content

Add ensure_all_started to make it obvious you need the application #32

Add ensure_all_started to make it obvious you need the application

Add ensure_all_started to make it obvious you need the application #32

Workflow file for this run

name: Erlang
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:
matrix:
otp_version: ['24.3.4']
rebar3_version: ['3.18.0']
os: [ubuntu-18.04]
env:
OTP_VERSION: ${{ matrix.otp_version }}
steps:
- uses: actions/checkout@v2
- name: Run Collector
run: docker-compose up -d
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
- uses: actions/cache@v2
name: Cache
with:
path: |
_build
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles(format('rebar.lock')) }}-2
restore-keys: |
${{ runner.os }}-build-${{ matrix.otp_version }}-2-
- name: Compile
run: rebar3 compile
- name: Common Test tests
run: rebar3 ct --cover
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: always() # always run even if the previous step fails
with:
report_paths: '_build/test/logs/*/junit_report.xml'
- name: XRef
run: rebar3 xref
- name: Covertool
if: ${{ always() }}
run: rebar3 covertool generate
- uses: codecov/codecov-action@v2
if: ${{ always() }}
with:
file: _build/test/covertool/pgo.covertool.xml
env_vars: OTP_VERSION
dialyzer:
name: Dialyze on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.3.4']
rebar3_version: ['3.18.0']
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
- uses: actions/cache@v2
name: Cache
with:
path: |
_build
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles('rebar.lock') }}-2
restore-keys: |
${{ runner.os }}-dialyzer-${{ matrix.otp_version }}-2-
- name: Compile
run: rebar3 compile
- name: Dialyzer
run: rebar3 dialyzer