2021-03-12 15:52:16 +08:00
|
|
|
name: Coverage
|
|
|
|
|
2021-05-07 11:26:44 +08:00
|
|
|
#Run once a day
|
2021-03-12 15:52:16 +08:00
|
|
|
on:
|
|
|
|
schedule:
|
2021-05-03 16:53:08 +08:00
|
|
|
- cron: '49 0 * * *'
|
2021-03-12 15:52:16 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
coverage:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: package installs
|
|
|
|
run: |
|
|
|
|
sudo apt-get -yq install lcov
|
|
|
|
- name: config
|
2021-05-12 22:42:46 +08:00
|
|
|
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 && perl configdata.pm --dump
|
2021-03-12 15:52:16 +08:00
|
|
|
- name: make
|
|
|
|
run: make -s -j4
|
|
|
|
- name: make test
|
|
|
|
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
|
|
|
|
- name: generate coverage info
|
|
|
|
run: lcov -d . -c -o ./lcov.info
|
|
|
|
- name: Coveralls upload
|
|
|
|
uses: coverallsapp/github-action@v1.1.2
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.github_token }}
|
|
|
|
path-to-lcov: ./lcov.info
|