2
0

coveralls.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License 2.0 (the "License"). You may not use
  4. # this file except in compliance with the License. You can obtain a copy
  5. # in the file LICENSE in the source distribution or at
  6. # https://www.openssl.org/source/license.html
  7. name: Coverage
  8. #Run once a day
  9. on:
  10. schedule:
  11. - cron: '49 0 * * *'
  12. permissions:
  13. contents: read
  14. jobs:
  15. coverage:
  16. permissions:
  17. checks: write # for coverallsapp/github-action to create new checks
  18. contents: read # for actions/checkout to fetch code
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v4
  22. - name: package installs
  23. run: |
  24. sudo apt-get -yq install lcov
  25. - name: config
  26. run: CC=gcc ./config --banner=Configured --debug --coverage no-asm enable-fips enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
  27. - name: config dump
  28. run: ./configdata.pm --dump
  29. - name: make
  30. run: make -s -j4
  31. - name: make test
  32. run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
  33. - name: generate coverage info
  34. run: lcov -d . -c -o ./lcov.info
  35. - name: Coveralls upload
  36. uses: coverallsapp/github-action@v2.3.0
  37. with:
  38. github-token: ${{ secrets.github_token }}
  39. path-to-lcov: ./lcov.info