Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,25 @@ jobs:
exit 1
}

# Adding .dotnet to GITHUB_PATH as this ensures that the tests running
# from the repo always use restored dotnet. For tests run from outside
# the repo we install system dotnet earlier in the build

- name: Setup vars (Linux)
if: ${{ inputs.os == 'ubuntu-latest' || inputs.os == 'macos-latest' }}
run: |
echo "DOTNET_SCRIPT=./dotnet.sh" >> $GITHUB_ENV
echo "BUILD_SCRIPT=./build.sh" >> $GITHUB_ENV
echo "TEST_RUN_PATH=${{ github.workspace }}/run-tests" >> $GITHUB_ENV
echo ${{ github.workspace }}/.dotnet >> $GITHUB_PATH

- name: Setup vars (Windows)
if: ${{ inputs.os == 'windows-latest' }}
run: |
echo "DOTNET_SCRIPT=.\dotnet.cmd" >> $env:GITHUB_ENV
echo "BUILD_SCRIPT=.\build.cmd" >> $env:GITHUB_ENV
echo "TEST_RUN_PATH=${{ github.workspace }}\run-tests" >> $env:GITHUB_ENV
echo ${{ github.workspace }}\.dotnet >> $env:GITHUB_PATH

- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
Loading