From 30d66003ef29db596746662932ecdb921f92bb0b Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sat, 10 Jun 2023 12:35:26 +0200 Subject: [PATCH] Use export for env variables --- .github/workflows/linux.yml | 5 ++--- .github/workflows/macos.yml | 5 ++--- .github/workflows/windows.yml | 7 +++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 89b0ba6..c225d1a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,10 +15,9 @@ jobs: run: | sudo apt-get install inotify-tools acl - name: Execute tests and generate coverage report - env: - RUNNING_ON_GITHUB_ACTIONS: true - SSH_PORT: 22 run: | + export RUNNING_ON_GITHUB_ACTIONS=true + export SSH_PORT=22 sudo bash ./dev/tests/run_tests.sh - name: Upload Coverage to Codecov uses: codecov/codecov-action@v1 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 29fd747..2c5e52e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,10 +20,9 @@ jobs: brew install fswatch echo "/usr/local/bin" >> $GITHUB_PATH - name: Execute tests and generate coverage report - env: - RUNNING_ON_GITHUB_ACTIONS: true - SSH_PORT: 22 run: | + export RUNNING_ON_GITHUB_ACTIONS=true + export SSH_PORT=22 sudo bash ./dev/tests/run_tests.sh - name: Upload Coverage to Codecov uses: codecov/codecov-action@v1 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b235ea7..2b7c12d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,11 +19,10 @@ jobs: openssh-server - name: Execute tests and generate coverage report shell: wsl-bash {0} - env: - RUNNING_ON_GITHUB_ACTIONS: true - SSH_PORT: 22 run: | - find . -type f ! -name ".git*" -print0 | xargs -0 -n 1 -P 4 dos2unix + RUNNING_ON_GITHUB_ACTIONS=true + SSH_PORT=22 + find . -type f -not -path ".git/*" -print0 | xargs -0 -n 1 -P 4 dos2unix service ssh start ./dev/tests/run_tests.sh - name: Upload Coverage to Codecov