Skip to content

Add callback exposing client source port #47

Add callback exposing client source port

Add callback exposing client source port #47

Workflow file for this run

# Copyright 2020-2025 Rainer Gerhards and Others
#
# https://github.com/rsyslog/rsyslog-pkg-ubuntu
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# References:
#
# https://help.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#github-actions-notification-options
# https://github.com/settings/notifications
# https://software.opensuse.org/download.html?project=home%3Argerhards&package=rsyslog
---
name: coverage
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 50
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
automake \
autoconf-archive \
pkg-config \
libtool \
autoconf \
autotools-dev \
uuid-dev \
bison \
flex \
python3-docutils \
libestr-dev \
libfastjson-dev \
libgnutls28-dev \
lcov
- name: Configure project
run: |
export CC=gcc
export CFLAGS="--coverage"
export LDFLAGS="--coverage"
autoreconf -fvi
./configure --enable-tls
- name: Build
run: |
export CC=gcc
export CFLAGS="--coverage"
export LDFLAGS="--coverage"
make -j2
- name: Run testbench
run: |
export CC=gcc
export CFLAGS="--coverage"
export LDFLAGS="--coverage"
make -j2 check
cat tests/test-suite.log
- name: Generate coverage report
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true