From 219cb54225ef1e4f150724b18b5f856b936bc30d Mon Sep 17 00:00:00 2001 From: Oscar Lamas Rios Date: Mon, 25 Aug 2025 13:24:37 +0200 Subject: [PATCH] feat: update CI to use erlang 28 --- .github/workflows/ci.yml | 43 +++++++++++++++++++--------------------- rebar.config | 6 +++--- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92e2b67..8b4aa58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: nmaglev ci +name: CI on: push: @@ -6,46 +6,43 @@ on: pull_request: branches: [main] -env: - REBAR3-VERSION: 3.20.0 - jobs: - check: + build: runs-on: ubuntu-latest strategy: matrix: - otp: ['25.2.3', '24.3'] + 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@v1 + - uses: test-summary/action@v2 if: always() with: paths: '_build/test/logs/**/report.xml' diff --git a/rebar.config b/rebar.config index 304dff3..49c4720 100644 --- a/rebar.config +++ b/rebar.config @@ -3,8 +3,8 @@ ]}. {project_plugins, [ - {erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}}, - {gradualizer, {git, "git@github.com:josefs/Gradualizer.git", {branch, "master"}}} + erlfmt, + {gradualizer, {git, "https://github.com/josefs/Gradualizer.git", {branch, "master"}}} ]}. {erlfmt, [write]}. @@ -26,7 +26,7 @@ ]}, {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"}}} ]} ]} ]}.