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: only runs CI on pull requests & master #533

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

peetzweg
Copy link
Collaborator

Before we run some workflows for every branch even if no PR was created. As the checks are not yet relevant, we can save on the CI minutes by running them only on PRs and master pushes.

Copy link

netlify bot commented Nov 23, 2023

Deploy Preview for contracts-ui ready!

Name Link
🔨 Latest commit 57388a1
🔍 Latest deploy log https://app.netlify.com/sites/contracts-ui/deploys/655f728f097729000845878e
😎 Deploy Preview https://deploy-preview-533--contracts-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cypress bot commented Nov 23, 2023

Passing run #300 ↗︎

0 61 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 57388a1 into 9ee2984...
Project: Contracts UI Commit: 6e1d0a1e2b ℹ️
Status: Passed Duration: 01:34 💡
Started: Nov 23, 2023 3:43 PM Ended: Nov 23, 2023 3:45 PM

Review all test suite changes for PR #533 ↗︎

Comment on lines +4 to +5
push:
branches: [master]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this means PR that target master?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part means it should run on any push to master, does not matter the reason/origin. So main use case here after a merge of a pull request.

on:
  push:
    branches: [master]

And this means this workflow should run for pull requests which target master. So one opening a PR against master.

on:
  pull_request:
    branches: [master]

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

@peetzweg peetzweg merged commit 09d584a into master Nov 27, 2023
12 checks passed
@peetzweg peetzweg deleted the pz/less-ci branch November 27, 2023 09:59
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.

2 participants