Skip to content

Commit 1b4fe3c

Browse files
authored
Merge pull request #52 from kianmeng/ci-housekeeping
CI housekeeping
2 parents b2f68f9 + 5dde009 commit 1b4fe3c

File tree

4 files changed

+17
-35
lines changed

4 files changed

+17
-35
lines changed

.github/workflows/erlang.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,17 @@ on:
99
- master
1010
jobs:
1111
ci:
12-
name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
13-
runs-on: ${{matrix.os}}
12+
name: OTP ${{matrix.otp}}
13+
runs-on: ubuntu-latest
14+
# enable this to test all OTP versions at once regardless the errors
15+
# continue-on-error: true
1416
container:
15-
image: erlang:${{matrix.otp_vsn}}
17+
image: erlang:${{matrix.otp}}
1618
strategy:
1719
matrix:
18-
otp_vsn: ["19.0", "19.3",
19-
"20.0", "20.1.7", "20.3.8.22",
20-
"21.0.9", "21.1.4", "21.2.7", "21.3.8.1",
21-
"22.0.7", "22.2.8", "22.3.4",
22-
"23.0.2", "23.2", "24"]
23-
os: [ubuntu-latest]
20+
otp: [21, 22, 23, 24, 25, 26, 27]
2421
steps:
25-
- run: |
26-
apt-get update
27-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2823
- run: rebar3 --version
2924
- run: rebar3 eunit
3025
- run: rebar3 dialyzer

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

rebar.config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@
1919
{source_url, "https://github.com/certifi/erlang-certifi"},
2020
{assets, "assets"},
2121
{api_reference, true}
22-
]}.
22+
]}.
23+
24+
%% Since OTP 26
25+
{dialyzer, [
26+
{plt_extra_apps, [public_key]}
27+
]}.

test/certifi_tests.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ reproducible_module_test() ->
1010

1111
cacerts_test_() ->
1212
Certs = [Cert1, Cert2, Cert3 | _] = certifi:cacerts(),
13-
[?_assertEqual(128, length(Certs))
14-
,?_assertMatch(<<48,130,5,192,48,130,3,168,160,3,2,1,2,2,16,30,191,89,80,184,_/binary>>, Cert1)
15-
,?_assertMatch(<<48,130,2,101,48,130,1,235,160,3,2,1,2,2,16,120,143,39,92,_/binary>>, Cert2)
16-
,?_assertMatch(<<48,130,5,239,48,130,3,215,160,3,2,1,2,2,8,13,211,227,188,_/binary>>, Cert3)
13+
[?_assertEqual(147, length(Certs))
14+
,?_assertMatch(<<48,130,5,179,48,130,3,155,160,3,2,1,2,2,16,33,156,84,45,232,_/binary>>, Cert1)
15+
,?_assertMatch(<<48,130,2,66,48,130,1,201,160,3,2,1,2,2,16,54,58,150,140,_/binary>>, Cert2)
16+
,?_assertMatch(<<48,130,5,108,48,130,3,84,160,3,2,1,2,2,20,84,22,191,59,_/binary>>, Cert3)
1717
,?_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))
1818
].

0 commit comments

Comments
 (0)