]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
github: re-arrange workflow run commands
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 21 Oct 2021 21:18:28 +0000 (15:18 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 25 Oct 2021 13:56:58 +0000 (07:56 -0600)
The current workflow executes the functional tests from the make check
called at the top-level source directory. Though this runs the tests
case, it also has an unintended side effect of re-running gunit tests
for every functional test combination in the workflow. Fix it, by
re-arranging the function test run commands, to change into
tests/ftests directory before executing make check.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml

index b4769b7d9b1d4ff8d5fef3c3001ff419b6c0381a..d43e0ebbd001d9831cd1bebde13044c7d755e68d 100644 (file)
@@ -73,8 +73,8 @@ jobs:
       uses: ./.github/actions/setup-libcgroup
     - name: Run functional tests
       run: |
-        make check
         pushd tests/ftests
+        make check
         popd
     - name: Display test logs
       if: ${{ always() }}
@@ -129,8 +129,8 @@ jobs:
       uses: ./.github/actions/setup-libcgroup
     - name: Run functional tests
       run: |
-        make check
         pushd tests/ftests
+        make check
         popd
     - name: Display test logs
       if: ${{ always() }}
@@ -173,8 +173,8 @@ jobs:
       uses: ./.github/actions/setup-libcgroup
     - name: Run functional tests
       run: |
-        make check
         pushd tests/ftests
+        make check
         popd
     - name: Display test logs
       if: ${{ always() }}