Skip to content

Commit

Permalink
Merge pull request SIfoxDevTeam#1 from onno-vos-dev/add-basic-ci
Browse files Browse the repository at this point in the history
Add basic CI
  • Loading branch information
MikhailKalashnikov authored Jul 21, 2022
2 parents e8e4403 + 10f40ea commit 7b66bcd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches:
- '*'
pull_request:
branches:
- master

jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
otp-version: [21.3, 22.2, 23.0, 24.0]
runs-on: ${{ matrix.platform }}
container:
image: erlang:${{ matrix.otp-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile
run: make compile
- name: Xref
run: make xref
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ REBAR = rebar3
compile:
@$(REBAR) compile

xref:
@$(REBAR) xref

clean:
@$(REBAR) clean

Expand Down
11 changes: 11 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@

{eunit_opts, [verbose]}.

{xref_warnings,false}.
{xref_checks,[undefined_function_calls,
undefined_functions,
locals_not_used,
%% There's bunch of functions exported but unused,
%% for the time being, do not run exports_not_used Xref check
%% exports_not_used,
deprecated_function_calls,
deprecated_functions
]}.

{erl_opts, [
debug_info,
warnings_as_errors
Expand Down

0 comments on commit 7b66bcd

Please sign in to comment.