diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-10 08:30:09 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-08-02 14:45:57 +0200 |
commit | 020d9858e78b80f50c493ca3230b6970fbaf7ebe (patch) | |
tree | a05470ac10ba6273235255c2567195f8e34451fb | |
parent | bb7c1aabd46309b44c30cf076377bcf373de6c8e (diff) | |
download | neard-020d9858e78b80f50c493ca3230b6970fbaf7ebe.tar.gz |
ci: run unit tests
Although unit tests are executed as part of distcheck, but add it as a
dedicated step to make it explicit with getting the logs afterwards.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r-- | .github/workflows/ci.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8e3fb8..e8f507a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -256,6 +256,17 @@ jobs: - name: Compile run: make -j$(nproc) + - name: Run unit tests + id: unit_tests + run: | + make check + if: ${{ (matrix.env['ARCH'] == 'x86-64') || (matrix.env['ARCH'] == 'i386') }} + + - name: Get unit tests logs + run: cat test-suite.log + if: ${{ always() && ((steps.unit_tests.outcome == 'failure') || + (steps.unit_tests.outcome == 'success')) }} + - name: Check final binary run: | file src/neard |