diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89d0f34..dd15156 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/rebar.config b/rebar.config index 51021d8..ed4ad5a 100644 --- a/rebar.config +++ b/rebar.config @@ -3,7 +3,7 @@ ]}. {project_plugins, [ - {erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}} + erlfmt ]}. {erlfmt, [write]}. @@ -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"}}} ]} ]} ]}.