summaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml41
1 files changed, 39 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0f93930..77b09f4 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,15 +1,48 @@
1---
1name: Test 2name: Test
2 3
3on: 4on:
4 push: 5 push:
5 branches: 6 branches:
6 - '*' 7 - '*'
8 # Run test for any PRs
7 pull_request: 9 pull_request:
8 10
9jobs: 11jobs:
12 codespell:
13 name: codespell
14 strategy:
15 fail-fast: false
16 runs-on: ubuntu-latest
17 steps:
18 - name: Checkout
19 uses: actions/checkout@v4
20 - name: Codespell
21 uses: codespell-project/actions-codespell@v2
22 with:
23 skip: "./.git,./.gitignore,./ABOUT-NLS,*.po,./gl,./po,./tools/squid.conf,./build-aux/ltmain.sh"
24 ignore_words_list: allright,gord,didi,hda,nd,alis,clen,scrit,ser,fot,te,parm,isnt,consol,oneliners
25 check_filenames: true
26 check_hidden: true
27# super-linter:
28# name: super-linter
29# strategy:
30# fail-fast: false
31# runs-on: ubuntu-latest
32# steps:
33# - name: Checkout
34# uses: actions/checkout@v4
35# - name: Lint Code Base
36# uses: github/super-linter@v5.0.0
37# env:
38# DEFAULT_BRANCH: master
39# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10# macos: 40# macos:
11# ... 41# ...
12 linux: 42 linux:
43 needs:
44 - codespell
45# - super-linter
13 runs-on: ubuntu-latest 46 runs-on: ubuntu-latest
14 name: Running tests on ${{ matrix.distro }} 47 name: Running tests on ${{ matrix.distro }}
15 strategy: 48 strategy:
@@ -24,7 +57,7 @@ jobs:
24 #... 57 #...
25 steps: 58 steps:
26 - name: Git clone repository 59 - name: Git clone repository
27 uses: actions/checkout@v2 60 uses: actions/checkout@v4
28 #- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate 61 #- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate
29 # uses: mxschmitt/action-tmate@v3 62 # uses: mxschmitt/action-tmate@v3
30 - name: Run the tests on ${{ matrix.distro }} 63 - name: Run the tests on ${{ matrix.distro }}
@@ -40,7 +73,11 @@ jobs:
40 ${{ matrix.distro }} \ 73 ${{ matrix.distro }} \
41 /bin/sh -c '${{ matrix.prepare }} && \ 74 /bin/sh -c '${{ matrix.prepare }} && \
42 tools/setup && \ 75 tools/setup && \
43 ./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 && \
44 make && \ 81 make && \
45 make test' 82 make test'
46 docker container prune -f 83 docker container prune -f