Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: run website tests against netlify deployment#6212

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

JamesHenry
Copy link
Member

@JamesHenryJamesHenry commentedDec 14, 2022
edited
Loading

Rather than running an extra dev-server on localhost within the Github agent, which has proven to be flaky, this runs the website tests against the actual Netlify deployment which we are doing anyway as part of our workflow.

In my initial implementation I had a very convoluted way of achieving it via Netlify build hooks and a webhook handler which triggered an additional workflow.

It has proven to be much simpler by leveraging the Netlify API instead (which was already done by an existing Github Action from the community)

@nx-cloud
Copy link

nx-cloudbot commentedDec 14, 2022
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit4d2544f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 46 targets

Sent with 💌 fromNxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JamesHenry!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedDec 14, 2022
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit4d2544f
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/63f343359a6b0f000885517f
😎 Deploy Previewhttps://deploy-preview-6212--typescript-eslint.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 yourNetlify site settings.

@JamesHenryJamesHenryforce-pushed therun-website-tests-against-netlify-deployment branch from898afe4 tof57d58fCompareDecember 14, 2022 14:37
@JamesHenryJamesHenryforce-pushed therun-website-tests-against-netlify-deployment branch fromf57d58f todb1ef3dCompareFebruary 20, 2023 09:15
@JamesHenryJamesHenryforce-pushed therun-website-tests-against-netlify-deployment branch fromdb1ef3d tob0b3d63CompareFebruary 20, 2023 09:26
@@ -15,8 +15,6 @@ test.describe('Website', () => {
}
});
await page.goto('/');
expect(errorMessages).toStrictEqual([
"[error] Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot",
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This error message was only applicable to the local dev-server and is not shown to our users on production builds. A nice extra benefit of this approach is that our testing is more representative of our end UX

JoshuaKGoldberg reacted with thumbs up emoji
@JamesHenryJamesHenry marked this pull request as ready for reviewFebruary 20, 2023 09:51
@JamesHenry
Copy link
MemberAuthor

JamesHenry commentedFeb 20, 2023
edited
Loading

The remaining website test failure is consistent with the same failure on the latest main run, so it is not related to the changes.

UPDATE: confirms the failure happens locally too

@@ -179,26 +179,38 @@ jobs:
contents: read # to fetch code (actions/checkout)

name: Website tests
# We technically do not need to wait for build within the pipeline any more because the build we care about is happening within Netlify, however,
# it is highly likely that if the CI one fails, the Netlify one will as well, so in order to not waste unncessary Github Actions minutes/resources,
# we do still keep this requirement here.

Choose a reason for hiding this comment

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

chuckles in#5573

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

⚡ yess!!!

@JamesHenryJamesHenry merged commita26afcf intomainFeb 20, 2023
@JamesHenryJamesHenry deleted the run-website-tests-against-netlify-deployment branchFebruary 20, 2023 16:00
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsFeb 28, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

@bradzacherbradzacherAwaiting requested review from bradzacher

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@JamesHenry@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp