Skip to content

ci: build demos whenever plugin changes or cache cleared #1381

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 1 commit into from
Jun 10, 2022

Conversation

ascorbic
Copy link
Contributor

Summary

Updates the demos' ignore commands so that the sites will all build if the plugin changes. It is different from before because it also will now build if the two commit hashes are the same. This is the case when the cache is cleared. Previously this would return a value of unchanged, meaning it wasn't possibel to manually build the demo sites.

Test plan

  1. Check that the sites build

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

capybara

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/62a362f67f34610008ddf801
😎 Deploy Preview https://deploy-preview-1381--netlify-plugin-nextjs-demo.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 settings.

@ascorbic ascorbic requested a review from a team June 10, 2022 15:27
@ascorbic ascorbic self-assigned this Jun 10, 2022
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Jun 10, 2022
@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/62a362f67f34610008ddf806
😎 Deploy Preview https://deploy-preview-1381--netlify-plugin-nextjs-export-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/62a362f6ef0bd20009e266ac
😎 Deploy Preview https://deploy-preview-1381--netlify-plugin-nextjs-static-root-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/62a362f6cfa9d00009db7c98
😎 Deploy Preview https://deploy-preview-1381--netlify-plugin-nextjs-nx-monorepo-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/62a362f6be1db8000a144331
😎 Deploy Preview https://deploy-preview-1381--next-plugin-edge-middleware.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/62a362f62592f00009b8d2b5
😎 Deploy Preview https://deploy-preview-1381--netlify-plugin-nextjs-next-auth-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for next-plugin-rsc-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/62a362f65ca4450009f4e7d7
😎 Deploy Preview https://deploy-preview-1381--next-plugin-rsc-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/62a362f6cfa9d00009db7c9d
😎 Deploy Preview https://deploy-preview-1381--next-i18next-demo.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 settings.

@netlify
Copy link

netlify bot commented Jun 10, 2022

Deploy Preview for next-plugin-canary failed.

Name Link
🔨 Latest commit dea7667
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/62a362f65ca4450009f4e7dc

@cypress
Copy link

cypress bot commented Jun 10, 2022



Test summary

21 0 0 0


Run details

Project netlify-plugin-nextjs-default-demo
Status Passed
Commit 1cab179 ℹ️
Started Jun 10, 2022 3:31 PM
Ended Jun 10, 2022 3:32 PM
Duration 01:33 💡
OS Linux Ubuntu - 20.04
Browser Chrome 102

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@cypress
Copy link

cypress bot commented Jun 10, 2022



Test summary

7 0 0 0


Run details

Project netlify-plugin-nextjs-static-demo
Status Passed
Commit 1cab179 ℹ️
Started Jun 10, 2022 3:31 PM
Ended Jun 10, 2022 3:33 PM
Duration 01:15 💡
OS Linux Ubuntu - 20.04
Browser Chrome 102

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@cypress
Copy link

cypress bot commented Jun 10, 2022



Test summary

2 0 0 0


Run details

Project netlify-plugin-nextjs-nx-monorepo-demo
Status Passed
Commit 1cab179 ℹ️
Started Jun 10, 2022 3:32 PM
Ended Jun 10, 2022 3:34 PM
Duration 01:12 💡
OS Linux Ubuntu - 20.04
Browser Chrome 102

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -1,7 +1,7 @@
[build]
command = "next build"
publish = ".next"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ../../"
ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../../plugin; fi;"

Choose a reason for hiding this comment

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

Just putting a note for folks if they're not sure why we're doing an exit 1. See https://docs.netlify.com/configure-builds/ignore-builds/#custom-ignore-command

@kodiakhq kodiakhq bot merged commit 750451f into main Jun 10, 2022
@kodiakhq kodiakhq bot deleted the mk/demno-ignore branch June 10, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants