Skip to content

Commit

Permalink
Change to riak standard GHA & rebar3
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Dec 21, 2022
1 parent dc176b1 commit adb632e
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 46 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/ci.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Erlang CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]


jobs:

build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
otp:
- "25.1"
- "24.3"
- "22.3"

container:
image: erlang:${{ matrix.otp }}

steps:
- uses: lukka/get-cmake@latest
- uses: actions/checkout@v2
- name: Compile
run: ./rebar3 compile
- name: Run xref and dialyzer
run: ./rebar3 do xref, dialyzer
- name: Run eunit
run: ./rebar3 as gha do eunit
17 changes: 0 additions & 17 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REBAR?=rebar3
REBAR?=./rebar3

.PHONY: all edoc test clean build

Expand Down
5 changes: 5 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
% -*- mode: erlang -*-
{minimum_otp_vsn, "22.0"}.
{erl_opts, [debug_info,
{platform_define, "^(18|19|20|21|22)", new_crypto_unavailable},
{platform_define, "^(18|19|20)", ssl_handshake_unavailable},
{platform_define, "^21-", otp_21}]}.
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{profiles, [
{test, [{deps, [meck]}]},
{gha, [{erl_opts, [{d, 'GITHUBEXCLUDE'}]}]}
]}.
{dialyzer_opts, [{warnings, [no_return,
no_unused,
no_improper_lists,
Expand Down
Binary file added rebar3
Binary file not shown.

0 comments on commit adb632e

Please sign in to comment.