Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: conf ci

on:
push:
branches: [main]
branches: [noma/main]
pull_request:
branches: [main]
branches: [noma/main]

env:
OTP-VERSION: 25.2.3
Expand All @@ -13,27 +13,39 @@ env:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
combo:
- otp-version: '25.2'
rebar3-version: '3.18.0'
- otp-version: '26.2'
rebar3-version: '3.23.0'
- otp-version: '27.2'
rebar3-version: '3.24.0'
- otp-version: '28.0'
rebar3-version: '3.25.0'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: webfactory/ssh-agent@v0.7.0
- uses: erlef/setup-beam@v1.18
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
otp-version: ${{ matrix.combo.otp-version }}
rebar3-version: ${{ matrix.combo.rebar3-version }}

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP-VERSION }}
rebar3-version: ${{ env.REBAR3-VERSION }}

- uses: actions/cache@v3.2.6
- uses: actions/cache@v4
id: rebar3-cache
with:
path: |
~/.cache/rebar3
_build
key: ${{ runner.os }}-${{ env.OTP-VERSION }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.combo.otp-version }}-${{ matrix.combo.rebar3-version }}-${{ hashFiles('rebar.lock') }}

- run: rebar3 check

- run: rebar3 test

- uses: test-summary/action@v2
if: always()
with:
paths: '_build/test/logs/**/report.xml'
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{deps, [{yamerl, {git, "https://github.com/yakaz/yamerl.git", {branch, "master"}}},
{yval, {git, "https://github.com/nomasystems/yval.git", {branch, "experiment/do-not-fail-with-extra-data"}}}]}.
{yval, {git, "https://github.com/nomasystems/yval.git", {branch, "noma/main"}}}]}.

{erl_opts,
[{platform_define, "^21\.[0-2]\.", old_set_env},
Expand Down
4 changes: 2 additions & 2 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[{<<"yamerl">>,
{git,"https://github.com/yakaz/yamerl.git",
{ref,"bf9d8b743bfc9775f2ddad9fb8d18ba5dc29d3e1"}},
{ref,"bdb3b032f972a397c527667254393cd3c8942df3"}},
0},
{<<"yval">>,
{git,"https://github.com/nomasystems/yval.git",
{ref,"8cddc44992a81dce187754ec017b481cd52d5ce2"}},
{ref,"374900ef1b39bc76420075a0dfd7ceeb9512be5b"}},
0}].
1 change: 1 addition & 0 deletions test/conf_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ apps() ->
expect() ->
[{crypto,[{fips_mode,false},{rand_cache_size,1024}]},
{kernel,[{boot_server_slaves,[{127,0,0,1}]},
{connect_all,true},
{dist_auto_connect,never},
{global_groups,[{group1,normal,[a@localhost,b@localhost]}]},
{inet_dist_listen_max,65535},
Expand Down