Skip to content

Commit

Permalink
Merge pull request #52 from kianmeng/ci-housekeeping
Browse files Browse the repository at this point in the history
CI housekeeping
  • Loading branch information
benoitc committed Jun 24, 2024
2 parents b2f68f9 + 5dde009 commit 1b4fe3c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 35 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,17 @@ on:
- master
jobs:
ci:
name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
runs-on: ${{matrix.os}}
name: OTP ${{matrix.otp}}
runs-on: ubuntu-latest
# enable this to test all OTP versions at once regardless the errors
# continue-on-error: true
container:
image: erlang:${{matrix.otp_vsn}}
image: erlang:${{matrix.otp}}
strategy:
matrix:
otp_vsn: ["19.0", "19.3",
"20.0", "20.1.7", "20.3.8.22",
"21.0.9", "21.1.4", "21.2.7", "21.3.8.1",
"22.0.7", "22.2.8", "22.3.4",
"23.0.2", "23.2", "24"]
os: [ubuntu-latest]
otp: [21, 22, 23, 24, 25, 26, 27]
steps:
- run: |
apt-get update
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: rebar3 --version
- run: rebar3 eunit
- run: rebar3 dialyzer
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@
{source_url, "https://github.com/certifi/erlang-certifi"},
{assets, "assets"},
{api_reference, true}
]}.
]}.

%% Since OTP 26
{dialyzer, [
{plt_extra_apps, [public_key]}
]}.
8 changes: 4 additions & 4 deletions test/certifi_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ reproducible_module_test() ->

cacerts_test_() ->
Certs = [Cert1, Cert2, Cert3 | _] = certifi:cacerts(),
[?_assertEqual(128, length(Certs))
,?_assertMatch(<<48,130,5,192,48,130,3,168,160,3,2,1,2,2,16,30,191,89,80,184,_/binary>>, Cert1)
,?_assertMatch(<<48,130,2,101,48,130,1,235,160,3,2,1,2,2,16,120,143,39,92,_/binary>>, Cert2)
,?_assertMatch(<<48,130,5,239,48,130,3,215,160,3,2,1,2,2,8,13,211,227,188,_/binary>>, Cert3)
[?_assertEqual(147, length(Certs))
,?_assertMatch(<<48,130,5,179,48,130,3,155,160,3,2,1,2,2,16,33,156,84,45,232,_/binary>>, Cert1)
,?_assertMatch(<<48,130,2,66,48,130,1,201,160,3,2,1,2,2,16,54,58,150,140,_/binary>>, Cert2)
,?_assertMatch(<<48,130,5,108,48,130,3,84,160,3,2,1,2,2,20,84,22,191,59,_/binary>>, Cert3)
,?_assertMatch(<<48,130,3,117,48,130,2,93,160,3,2,1,2,2,11,4,0,0,0,0,1,21,75,90,195,148,48,13,6,_/binary>>, lists:last(Certs))
].

0 comments on commit 1b4fe3c

Please sign in to comment.