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
44 changes: 20 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,47 @@
name: nbully ci
name: CI

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

env:
REBAR3-VERSION: 3.22.1

jobs:
check:
build:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.3.2', '26.2.1']
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: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/checkout@v4

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

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

- name: Compile
run: |
rebar3 clean
rebar3 compile
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.combo.otp-version }}-${{ matrix.combo.rebar3-version }}-${{ hashFiles('rebar.lock') }}

- run: rebar3 check

- run: rebar3 compile

- run: rebar3 test

- name: Create test summary
uses: test-summary/action@v2
- uses: test-summary/action@v2
if: always()
with:
paths: '_build/test/logs/**/report.xml'
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
]}.

{project_plugins, [
{erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}}
erlfmt
]}.
{erlfmt, [write]}.

Expand Down Expand Up @@ -34,7 +34,7 @@
{profiles, [
{test, [
{deps, [
{nct_util, {git, "git@github.com:nomasystems/nct_util.git", {branch, "main"}}}
{nct_util, {git, "https://github.com/nomasystems/nct_util.git", {branch, "main"}}}
]}
]}
]}.
Expand Down