Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(install): fail any e2e tests when not running from the source repo #989

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/local-repo-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
limit_main_pr:
runs-on: ubuntu-latest
steps:
# 1) Check for all incoming changes to files under `recipes` directory
- name: Ensure no fork repo
if: ${{ github.event_name == 'pull_request' }}
run: |
SOURCE_NAME=$(echo ${{ github.event.pull_request.head.repo.full_name }})
REMOTE_NAME=$(echo ${{ github.event.pull_request.base.repo.full_name }})
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ jobs:
with:
fetch-depth: 0

- name: Ensure no fork repo
if: ${{ github.event_name == 'pull_request' }}
run: |
SOURCE_NAME=$(echo ${{ github.event.pull_request.head.repo.full_name }})
REMOTE_NAME=$(echo ${{ github.event.pull_request.base.repo.full_name }})
if [ $SOURCE_NAME != $REMOTE_NAME ]; then
echo "PR should be created from a branch on the source repo, not from a fork, so the E2E tests can run. If you need access please reach out to the #help-virtuoso channel."
exit 1
fi

# 1) Check for all incoming changes to files under `recipes` directory
- name: Get Changed Files
id: getfile
Expand Down
Loading