From 6fd55bc982668f18d25259744bb66d43acac718f Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Wed, 12 Jun 2024 21:06:43 +0100 Subject: [PATCH] Bump versions to latest (#336) * Be consistent in the way we choose versions 1. we either pin to a specific version or not (we chose to pin) 2. we shouldn't use ~> in pre-1.0 versions, because there's no guarantees whatsoever in SemVer; 0.3.1 might break interface, and that's acceptable * Remove unused `platform_define` * Bump OTP versions to test under * Don't use latest (it's prone to surprises!) i.e. GitHub changes -latest under the hood and there goes your CI :) * Bump CI dependencies' versions * Bump test dep erlware_commons from 1.5.0 to 1.7.0 * Bump test dep jsone from 1.5.3 to 1.8.1 * Bump test dep meck from 0.9.0 to 0.9.2 * Increase confidence in code via Dialyzer * Remove seemingly unrequired override * Revert "Increase confidence in code via Dialyzer" This reverts commit 53767cc4211c8df2cade9228fbe1509e2a80ee45. * Restore previous Dialyzer analysis behavior We have a lot of unknown types, from rebar3 and want to avoid having to deal with that * Bump project plugin rebar3_hank from 0.3.0 to 1.4.0 We'd removed the ~> but forgot to bump the version * Remove unrequired test dep. We inherit this from the "parent" config. --- .github/workflows/ci.yml | 10 +++++----- rebar.config | 12 +++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9133e7..b13d54e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,13 @@ on: jobs: test: name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: - otp: ['24', '25'] - rebar3: ['3.16.1'] + otp: ['25', '26', '27'] + rebar3: ['3.23.0'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.otp}} @@ -28,7 +28,7 @@ jobs: - name: Code coverage run: rebar3 as test do cover,covertool generate - name: Upload coverage report - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: files: _build/test/covertool/rebar3_hex.covertool.xml name: ${{matrix.otp}} diff --git a/rebar.config b/rebar.config index 9fa50e2..64da2f2 100644 --- a/rebar.config +++ b/rebar.config @@ -3,30 +3,28 @@ {erl_opts, [ debug_info, {platform_define, "^2[3-9]", 'POST_OTP_22'}, - {platform_define, "^23", 'OTP_23'}, {platform_define, "^20", 'POST_OTP_19'}, {platform_define, "^19", 'POST_OTP_18'}, {platform_define, "^[2-9]", 'POST_OTP_18'} ]}. -{project_plugins, [covertool, rebar3_ex_doc, {rebar3_hank, "~> 0.3.0"}]}. +{project_plugins, [{covertool, "2.0.6"}, {rebar3_ex_doc, "0.2.23"}, {rebar3_hank, "1.4.0"}]}. {deps, [{hex_core, "0.10.1"}, {verl, "1.1.1"}]}. {profiles, [ {test, [ {extra_src_dirs, ["test/support"]}, - {overrides, [{override, rebar3,[{deps, [{erlware_commons, "1.3.1"}]}]}]}, - {deps, [{hex_core, "0.10.1"}, - {erlware_commons, "1.5.0"}, {elli, "3.3.0"}, - {jsone, "1.5.3"}, {meck, "0.9.0"}]}, + {deps, [{erlware_commons, "1.7.0"}, {elli, "3.3.0"}, + {jsone, "1.8.1"}, {meck, "0.9.2"}]}, {erl_opts, [nowarn_export_all]} ]} ]}. {dialyzer, [ {warnings, [ - error_handling + error_handling, + no_unknown ]}, {plt_extra_apps, [hex_core, verl]} ]}.