diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5434bab..5eab10c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: njson ci +name: CI on: push: @@ -6,32 +6,39 @@ on: pull_request: branches: [main] -env: - OTP-VERSION: 25.2.3 - REBAR3-VERSION: 3.20.0 - jobs: - check: + build: 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: webfactory/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - uses: erlef/setup-beam@v1 + - uses: erlef/setup-beam@v1.18 with: - otp-version: ${{ env.OTP-VERSION }} - 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 }}-${{ 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') }} - name: Compile run: | diff --git a/rebar.config b/rebar.config index a47a022..d12f8c7 100644 --- a/rebar.config +++ b/rebar.config @@ -4,7 +4,7 @@ {shell, [njson]}. {project_plugins, [ - {erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}} + erlfmt ]}. {erlfmt, [write]}. @@ -15,16 +15,16 @@ {test, [ {erl_opts, [nowarn_export_all]}, {deps, [ - {nct_util, {git, "git@github.com:nomasystems/nct_util.git", {branch, "main"}}}, - {triq, {git, "git@github.com:nomasystems/triq.git", {branch, "master"}}} + {nct_util, {git, "https://github.com/nomasystems/nct_util.git", {branch, "main"}}}, + {triq, {git, "https://github.com/nomasystems/triq.git", {branch, "master"}}} ]} ]}, {bench, [ {deps, [ - {jsone, {git, "git@github.com:sile/jsone.git", {branch, "master"}}}, + {jsone, {git, "https://github.com/sile/jsone.git", {branch, "master"}}}, thoas, - {eflambe, {git, "git@github.com:Stratus3D/eflambe.git", {branch, "master"}}}, - {erlperf, {git, "git@github.com:max-au/erlperf.git", {branch, "master"}}} + {eflambe, {git, "https://github.com/Stratus3D/eflambe.git", {branch, "master"}}}, + {erlperf, {git, "https://github.com/max-au/erlperf.git", {branch, "master"}}} ]}, {extra_src_dirs, [{"bench", [{recursive, false}]}]} ]}