summaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-07-11 23:08:01 +0200
committerGitHub <noreply@github.com>2023-07-11 23:08:01 +0200
commit65aa35d1afdea2570309efc7a08050504a53f091 (patch)
tree5c6b780907427500fe0e9ad8f78fa1489b74b518 /.github/workflows/test.yml
parent7b24d8cc3e00acacc1cdc493a14a96aefe7a5a1f (diff)
parent74927513f736eadf1c1416c6a36673f15cb4fce8 (diff)
downloadmonitoring-plugins-65aa35d.tar.gz
Merge pull request #1895 from waja/update-po
Try to detect if there are translation updates via CI
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 306f21cf..9c84acc4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -74,6 +74,10 @@ jobs:
74 /bin/sh -c '${{ matrix.prepare }} && \ 74 /bin/sh -c '${{ matrix.prepare }} && \
75 tools/setup && \ 75 tools/setup && \
76 ./configure --enable-libtap --with-ipv6=no && \ 76 ./configure --enable-libtap --with-ipv6=no && \
77 set -x && \
78 tmp_dir=$(mktemp -d -t test-XXXX) && cp -a po/ $tmp_dir/ && \
79 cd po && make update-po && cd .. && \
80 diff -Nur $tmp_dir/po/*.po po/*.po | tee -a /tmp/po.diff && diff -Nur $tmp_dir/po/*.pot po/*.pot | tee -a /tmp/po.diff && if [ $(wc -l /tmp/po.diff | cut -f 1 -d" ") -gt 0 ]; then echo "Error: Translations needs to be updated with make update-po!" && exit 1; fi && \
77 make && \ 81 make && \
78 make test' 82 make test'
79 docker container prune -f 83 docker container prune -f