Skip to content

Commit 7e80fee

Browse files
committed
Use latest codecov GH action version (v5)
Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 8b50496 commit 7e80fee

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
matrix:
1717
os:
@@ -53,7 +53,7 @@ jobs:
5353
[ -z "${ninja}" ] && export ninja=$(command -v ninja-build)
5454
gcovr -r .. -f ../src -f src/ -e ../tests -e tests -x coverage.xml
5555
56-
- uses: codecov/codecov-action@v3
56+
- uses: codecov/codecov-action@v5
5757
with:
5858
file: build/coverage.xml
5959
fail_ci_if_error: true # optional (default = false)

.github/workflows/install-dependencies

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ debian:*|ubuntu:*)
66
apt clean
77
apt update
88
apt -y install gcc meson pkg-config libjose-dev jose libhttp-parser-dev \
9-
systemd gcovr curl socat iproute2 asciidoc
9+
systemd gcovr curl socat iproute2 asciidoc git
1010
;;
1111

1212
*fedora:*)
1313
echo 'max_parallel_downloads=10' >> /etc/dnf/dnf.conf
1414
dnf -y clean all
1515
dnf -y --setopt=deltarpm=0 update
1616
dnf -y install gcc meson pkgconfig libjose-devel jose llhttp-devel \
17-
systemd gcovr curl socat iproute asciidoc
17+
systemd gcovr curl socat iproute asciidoc git
1818
;;
1919

2020
centos:7)
@@ -23,7 +23,7 @@ centos:7)
2323
yum install -y yum-utils epel-release
2424
yum config-manager -y --set-enabled PowerTools \
2525
|| yum config-manager -y --set-enabled powertools || :
26-
yum -y install meson socat iproute asciidoc
26+
yum -y install meson socat iproute asciidoc git
2727
yum-builddep -y tang
2828
;;
2929

@@ -33,7 +33,7 @@ centos:7)
3333
dnf install -y dnf-plugins-core epel-release
3434
dnf config-manager -y --set-enabled powertools \
3535
|| dnf config-manager -y --set-enabled crb || :
36-
dnf -y install meson socat iproute
36+
dnf -y install meson socat iproute git
3737
dnf builddep -y tang --allowerasing --skip-broken --nobest
3838
;;
3939
esac

tests/helpers

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ start_standalone_server() {
7575
${VALGRIND} tangd -p ${1} -l ${TMP}/db &
7676
}
7777

78+
start_standalone_server_fg() {
79+
${VALGRIND} tangd -p ${1} -l ${TMP}/db
80+
}
81+
7882
start_standalone_server_endpoint() {
7983
${VALGRIND} tangd -p ${1} -l ${TMP}/db -e ${2} &
8084
}

tests/rec-socat

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ export PID=$!
3131
wait_for_port ${PORT}
3232

3333
rec_second_phase
34+
35+
# Start the server in a wrong port
36+
start_standalone_server_fg "-1" && false || true

0 commit comments

Comments
 (0)