]> git.ipfire.org Git - thirdparty/openssl.git/blob - .github/workflows/coveralls.yml
Copyright year updates
[thirdparty/openssl.git] / .github / workflows / coveralls.yml
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
8 name: Coverage
9
10 # Run once a day
11 on:
12 schedule:
13 - cron: '49 0 * * *'
14
15 permissions:
16 contents: read
17
18 jobs:
19 coverage:
20 permissions:
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,
37 extra_config: no-afalgeng enable-fips enable-tfo
38 }
39 ]
40 runs-on: ubuntu-latest
41 steps:
42 - uses: actions/checkout@v4
43 with:
44 submodules: recursive
45 ref: ${{ matrix.branches.branch }}
46 - name: cache commit id
47 run: |
48 echo "githubid=`/usr/bin/git log -1 --format='%H'`" >>$GITHUB_ENV
49 - name: package installs
50 run: |
51 sudo apt-get update
52 sudo apt-get -yq install lcov
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
54 - name: install Test2::V0 for gost_engine testing
55 uses: perl-actions/install-with-cpanm@v1
56 with:
57 install: Test2::V0
58 - name: setup hostname workaround
59 run: sudo hostname localhost
60 - name: config
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
62 - name: config dump
63 run: ./configdata.pm --dump
64 - name: make
65 run: make -s -j4
66 - name: make test
67 run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} TESTS='-test_external_krb5'
68 - name: generate coverage info
69 run: lcov -d . -c -o ./lcov.info
70 - name: Coveralls upload
71 uses: coverallsapp/github-action@v2.2.1
72 with:
73 github-token: ${{ secrets.github_token }}
74 git-branch: ${{ matrix.branches.branch }}
75 git-commit: ${{ env.githubid }}
76 path-to-lcov: ./lcov.info