Skip to content

Commit

Permalink
Bump versions to latest (#336)
Browse files Browse the repository at this point in the history
* 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 53767cc.

* 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.
  • Loading branch information
paulo-ferraz-oliveira authored Jun 12, 2024
1 parent a21c817 commit 6fd55bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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}}
12 changes: 5 additions & 7 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
]}.
Expand Down

0 comments on commit 6fd55bc

Please sign in to comment.