-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI; fix Dialyzer errors; adopt tests for rebar3
- Loading branch information
Showing
8 changed files
with
77 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
ci: | ||
name: Run checks and tests over ${{matrix.otp}} and ${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
otp: ["26.0", "25.3", "24.3"] | ||
os: ["ubuntu-22.04"] | ||
include: | ||
- otp: "23.3" | ||
os: "ubuntu-20.04" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
rebar3-version: "3.17.0" | ||
|
||
- name: Install gettext | ||
run: sudo apt-get install -y gettext | ||
|
||
- name: Compile | ||
run: rebar3 compile | ||
|
||
- name: xref | ||
run: rebar3 xref | ||
|
||
- name: Eunit test | ||
run: rebar3 eunit | ||
|
||
- name: Generate docs | ||
run: rebar3 edoc | ||
|
||
- name: Dialyze | ||
run: rebar3 dialyzer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
% -*- mode: erlang -*- | ||
{erl_opts, [debug_info, fail_on_warning]}. | ||
%% {yrl_opts, [{verbose, true}]}. | ||
{lib_dirs, [deps]}. | ||
|
||
{xref_checks, [ | ||
undefined_function_calls, | ||
undefined_functions, | ||
deprecated_functions_calls, | ||
deprecated_functions | ||
]}. | ||
|
||
{dialyzer, | ||
[ | ||
{warnings, [unknown]}, | ||
{plt_apps, all_deps} | ||
]}. |
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
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
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
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
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
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