]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Update coverage data upload to Codecov
authorTobias Brunner <tobias@strongswan.org>
Tue, 27 Feb 2024 10:07:06 +0000 (11:07 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 4 Apr 2024 07:25:12 +0000 (09:25 +0200)
Since the script and action have issues with the directory structure, we
upload the lcov results instead.

.github/workflows/linux.yml
scripts/test.sh

index ad46d5c745eefb22fbf932c003497992d7861e92..dc13019320445f8f9c6f6c81440677b74ab25a45 100644 (file)
@@ -76,7 +76,12 @@ jobs:
       - uses: ./.github/actions/default
       - run: ccache -s
       - if: ${{ success() && matrix.test == 'coverage' }}
-        run: bash <(curl -s https://codecov.io/bash)
+        uses: codecov/codecov-action@v4
+        with:
+          fail_ci_if_error: true
+          file: coverage/coverage.cleaned.info
+          token: ${{ secrets.CODECOV_TOKEN }}
+          verbose: true
       - if: ${{ failure() }}
         uses: actions/upload-artifact@v4
         with:
index c4ffa2422f68193b9f77c0ebefc065c7be4e4078..72707a63f435333f7d1ca407c4667a4759f5051d 100755 (executable)
@@ -285,8 +285,8 @@ all|alpine|codeql|coverage|sonarcloud|no-dbg)
        if test "$TEST" != "coverage"; then
                CONFIG="$CONFIG --disable-coverage"
        else
-               # not actually required but configure checks for it
                DEPS="$DEPS lcov"
+               TARGET="coverage"
        fi
        DEPS="$DEPS libcurl4-gnutls-dev libsoup2.4-dev libunbound-dev libldns-dev
                  libmysqlclient-dev libsqlite3-dev clearsilver-dev libfcgi-dev