]> git.ipfire.org Git - thirdparty/openssl.git/blame - .github/workflows/coveralls.yml
Enable QUIC by default
[thirdparty/openssl.git] / .github / workflows / coveralls.yml
CommitLineData
08d8c2d8
P
1# Copyright 2021 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
1f085af0
SL
8name: Coverage
9
e8ca529f 10# Run once a day
1f085af0
SL
11on:
12 schedule:
e3188bae 13 - cron: '49 0 * * *'
1f085af0 14
c6e7f427
VS
15permissions:
16 contents: read
17
1f085af0
SL
18jobs:
19 coverage:
c6e7f427 20 permissions:
e8ca529f
P
21 checks: write # for coverallsapp/github-action to create new checks
22 contents: read # for actions/checkout to fetch code
23 strategy:
24 fail-fast: false
25 matrix:
26 branches: [
27 {
28 branch: OpenSSL_1_1_1-stable
29 }, {
30 branch: openssl-3.1,
31 extra_config: enable-fips
32 }, {
33 branch: openssl-3.0,
34 extra_config: enable-fips
35 }, {
36 branch: master,
8a764202 37 extra_config: no-afalgeng enable-fips enable-tfo
e8ca529f
P
38 }
39 ]
1f085af0
SL
40 runs-on: ubuntu-latest
41 steps:
4ff66347 42 - uses: actions/checkout@v3
c267588f
TM
43 with:
44 submodules: recursive
e8ca529f
P
45 ref: ${{ matrix.branches.branch }}
46 - name: cache commit id
47 run: |
48 echo "githubid=`/usr/bin/git log -1 --format='%H'`" >>$GITHUB_ENV
1f085af0
SL
49 - name: package installs
50 run: |
c267588f 51 sudo apt-get update
1f085af0 52 sudo apt-get -yq install lcov
c267588f 53 sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
e8ca529f 54 - name: install Test2::V0 for gost_engine testing
c267588f
TM
55 uses: perl-actions/install-with-cpanm@v1
56 with:
57 install: Test2::V0
58 - name: setup hostname workaround
59 run: sudo hostname localhost
1f085af0 60 - name: config
e8ca529f 61 run: CC=gcc ./config --debug --coverage ${{ matrix.branches.extra_config }} no-asm 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
7b917179
P
62 - name: config dump
63 run: ./configdata.pm --dump
1f085af0
SL
64 - name: make
65 run: make -s -j4
66 - name: make test
c267588f 67 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} TESTS='-test_external_krb5'
1f085af0
SL
68 - name: generate coverage info
69 run: lcov -d . -c -o ./lcov.info
70 - name: Coveralls upload
ac083de6 71 uses: coverallsapp/github-action@v2.2.0
1f085af0
SL
72 with:
73 github-token: ${{ secrets.github_token }}
e8ca529f
P
74 git-branch: ${{ matrix.branches.branch }}
75 git-commit: ${{ env.githubid }}
1f085af0 76 path-to-lcov: ./lcov.info