Skip to content

[CI] Do not use Allure on PRs from fork #5594

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

Merged
merged 3 commits into from
Jan 28, 2025
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
4 changes: 0 additions & 4 deletions .github/workflows/e2e-test-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ jobs:
env:
ANDROID_API_LEVEL: ${{ matrix.android_api_level }}
steps:
- name: Connect Bot
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: actions/[email protected]
continue-on-error: true
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ jobs:
env:
ANDROID_API_LEVEL: 34
steps:
- name: Connect Bot
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: actions/[email protected]
continue-on-error: true
Expand All @@ -51,6 +47,7 @@ jobs:
- uses: ./.github/actions/enable-kvm
- uses: ./.github/actions/setup-ruby
- uses: ./.github/actions/allure-launch
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
allure-token: ${{ secrets.ALLURE_TOKEN }}
- name: Run tests
Expand All @@ -64,13 +61,13 @@ jobs:
emulator-options: ${{ vars.EMULATOR_OPTIONS }}
script: bundle exec fastlane run_e2e_test batch:${{ matrix.batch }} batch_count:${{ strategy.job-total }}
- name: Allure TestOps Upload
if: success() || failure()
if: ${{ success() || failure() }} && ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: bundle exec fastlane allure_upload
env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
LAUNCH_ID: ${{ env.LAUNCH_ID }}
- name: Allure TestOps Launch Removal
if: cancelled()
if: cancelled() && ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: bundle exec fastlane allure_launch_removal
env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lane :start_mock_server do |options|
mock_server_repo = options[:local_server]
else
sh("rm -rf #{mock_server_repo}") if File.directory?(mock_server_repo)
sh("git clone git@github.com:#{github_repo.split('/').first}/#{mock_server_repo}.git")
sh("git clone https://github.com/#{github_repo.split('/').first}/#{mock_server_repo}.git")
end

Dir.chdir(mock_server_repo) do
Expand Down
Loading