Merge pull request #4544 from continuedev/nate/ignore-ssh-tests-on-forks
ignore ssh tests on forks
This commit is contained in:
commit
5412058bd4
1 changed files with 7 additions and 1 deletions
8
.github/workflows/pr_checks.yaml
vendored
8
.github/workflows/pr_checks.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue