From 60e8eaf290d815d1cfd2cfd931fc0464ea2c6ba0 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 18 Jan 2022 08:30:11 -0500 Subject: [PATCH] gcov coverage seems stale #3805 --- .github/workflows/build-unit-tests.yaml | 10 ++++++++++ unit_tests/ci_gcov.sh | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-unit-tests.yaml b/.github/workflows/build-unit-tests.yaml index 3f42ae0e96..984d82c8f1 100644 --- a/.github/workflows/build-unit-tests.yaml +++ b/.github/workflows/build-unit-tests.yaml @@ -56,6 +56,16 @@ jobs: working-directory: ./unit_tests/ run: ASAN_OPTIONS=detect_stack_use_after_return=1 build/rusefi_test + - name: Set FTP variables + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + run: | + if [ "${{github.ref}}" = "refs/heads/master" ]; then + echo "::set-env name=RUSEFI_SSH_SERVER::${{secrets.RUSEFI_SSH_SERVER}}"; + echo "::set-env name=RUSEFI_SSH_USER::${{secrets.RUSEFI_SSH_USER}}"; + echo "::set-env name=RUSEFI_SSH_PASS::${{secrets.RUSEFI_SSH_PASS}}"; + fi + - name: Generate Code Coverage if: ${{ matrix.os != 'macos-latest' && github.event_name == 'push' && github.ref == 'refs/heads/master' }} working-directory: ./unit_tests/ diff --git a/unit_tests/ci_gcov.sh b/unit_tests/ci_gcov.sh index 5aac6ca063..1bde94b363 100755 --- a/unit_tests/ci_gcov.sh +++ b/unit_tests/ci_gcov.sh @@ -1,8 +1,10 @@ #!/bin/bash # -# this one used by github actions -# this scripts replaces run_gcov.sh +# this script is used by github actions +# +# TODO: this script validates that it has three arguments but then proceeds to use environment variables not arguments! +# TODO: clean this up! # if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then