Skip to content

ci: avoid CI failures for forks #2497

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

skirtles-code
Copy link
Contributor

@skirtles-code skirtles-code commented Apr 25, 2025

Some of the CI jobs only work for vuejs/router and fail when pushing changes to forks.

This PR restricts those jobs so that they don't run on forks.

The approach is based on:

One of the jobs already has a check on github.event.pull_request.head.repo.fork, but that only helps for pull requests. Pushing commits to the main branch of a fork will still run the job, failing due to the missing secrets.

In theory, somebody might want to run these workflows on their fork, but I think that only makes sense if they don't intend to merge them back into the main repo, in which case they can just edit the workflow configs on their fork.

Copy link

netlify bot commented Apr 25, 2025

Deploy Preview for vue-router canceled.

Name Link
🔨 Latest commit 0e25996
🔍 Latest deploy log https://app.netlify.com/sites/vue-router/deploys/680bfa42385b7200084dcabe

Copy link

pkg-pr-new bot commented Apr 25, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vue-router@2497

commit: 0e25996

Copy link

codecov bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.90%. Comparing base (14b87f6) to head (0e25996).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2497   +/-   ##
=======================================
  Coverage   94.90%   94.90%           
=======================================
  Files          34       34           
  Lines        3003     3003           
  Branches      846      846           
=======================================
  Hits         2850     2850           
  Misses        150      150           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant