diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index ff627af..5c15761 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index faa4c30..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -sudo: false -language: erlang -before_install: set -e -after_script: set +e -install: curl -#fSLo ~/rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ~/rebar3 -after_install: ~/rebar3 version -script: - - if [[ "$TRAVIS_OTP_RELEASE" = '20.2' ]] && [[ "$TRAVIS_EVENT_TYPE" = 'cron' ]]; then make update; fi - - ~/rebar3 eunit - - '[[ 0 -eq $(git --no-pager diff | wc -l) ]]' -notifications: - email: - on_success: never -otp_release: - - 22.0 - - 21.0 - - 20.3 - - 19.3 diff --git a/rebar.config b/rebar.config index 8621aa9..024e6bc 100644 --- a/rebar.config +++ b/rebar.config @@ -19,4 +19,9 @@ {source_url, "https://github.com/certifi/erlang-certifi"}, {assets, "assets"}, {api_reference, true} -]}. \ No newline at end of file +]}. + +%% Since OTP 26 +{dialyzer, [ + {plt_extra_apps, [public_key]} +]}. diff --git a/test/certifi_tests.erl b/test/certifi_tests.erl index 4ba2439..e610a5b 100644 --- a/test/certifi_tests.erl +++ b/test/certifi_tests.erl @@ -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)) ].