diff --git a/.github/workflows/test-unit-gh_runner.yml b/.github/workflows/test-unit-gh_runner.yml index 904187785e8..e71879e574b 100644 --- a/.github/workflows/test-unit-gh_runner.yml +++ b/.github/workflows/test-unit-gh_runner.yml @@ -64,15 +64,20 @@ jobs: chmod +x ./${{ inputs.asset-name }}-support-files/* sudo cp ./${{ inputs.asset-name }}-support-files/* /opt/HPCCSystems/bin - - name: Start HPCC-Platform - shell: "bash" - run: | - export LANG="en_US.UTF-8" - sudo update-locale - sudo /etc/init.d/hpcc-init start - - name: Run Tests timeout-minutes: 10 # generous, expected time is approx 1 min. shell: "bash" run: | + export LANG="en_US.UTF-8" + sudo update-locale /opt/HPCCSystems/bin/unittests + + - name: unittests-logs-artifact + if: ${{ failure() || cancelled() }} + uses: actions/upload-artifact@v3 + with: + name: test-unit-${{ inputs.asset-name }}-${{ matrix.engine }}-${{ steps.vars.outputs.matrix-setname }} + path: | + /var/log/HPCCSystems + /home/runner/HPCCSystems-regression + if-no-files-found: error