Merge pull request #4544 from continuedev/nate/ignore-ssh-tests-on-forks

ignore ssh tests on forks
This commit is contained in:
Nate Sesti 2025-03-08 08:33:40 -08:00 • committed by GitHub
commit 5412058bd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,7 +303,13 @@ jobs:
cd extensions/vscode
npm ci
npm run e2e:compile
FILES=$(ls -1 e2e/_output/tests/*.test.js | jq -R . | jq -s .)
if [[ "${{ github.event.pull_request.head.repo.fork }}" == "true" || "${{ github.actor }}" == "dependabot[bot]" ]]; then
# Exclude SSH tests for forks
FILES=$(ls -1 e2e/_output/tests/*.test.js | grep -v "SSH" | jq -R . | jq -s .)
else
# Include all tests for non-forks
FILES=$(ls -1 e2e/_output/tests/*.test.js | jq -R . | jq -s .)
fi
echo "test_file_matrix<<EOF" >> $GITHUB_OUTPUT
echo "$FILES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT