Skip to content

test: add docusaurus deploy CI tests#7714

Draft
slorber wants to merge 5 commits intomainfrom
slorber/cli-deploy-tests
Draft

test: add docusaurus deploy CI tests#7714
slorber wants to merge 5 commits intomainfrom
slorber/cli-deploy-tests

Conversation

@slorber
Copy link
Collaborator

@slorber slorber commented Jul 1, 2022

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

As mentioned in #7702, we don't have any automated way to ensure our deploy CLI keeps working over time, and any modification usually requires manual tests to ensure nothing gets broken.

These CLI scripts are not really easy to test as they usually run multiple complex Git commands.

I suggest we run as part of our CI tests to deploy a build dir to a real Git repo branch, ensuring at least the "happy path" of that script keeps working over time.

Test Plan

CI

@slorber slorber added the pr: ignore This PR is not meaningful enough to appear in the changelog. label Jul 1, 2022
@slorber slorber requested review from Josh-Cena and lex111 as code owners July 1, 2022 13:27
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 1, 2022
@netlify
Copy link

netlify bot commented Jul 1, 2022

[V2]

Name Link
🔨 Latest commit 6c59142
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/62bef62bc4493c000806a013
😎 Deploy Preview https://deploy-preview-7714--docusaurus-2.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.

@github-actions
Copy link

github-actions bot commented Jul 1, 2022

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO PWA Report
/ 🟠 76 🟢 100 🟢 100 🟢 100 🟢 90 Report
/docs/installation 🟠 75 🟢 100 🟢 100 🟢 100 🟢 90 Report

@netlify
Copy link

netlify bot commented Jul 1, 2022

[V2]

Name Link
🔨 Latest commit 1bdff13
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/62bf012f0a6ce40008c50b32
😎 Deploy Preview https://deploy-preview-7714--docusaurus-2.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.

@github-actions
Copy link

github-actions bot commented Jul 1, 2022

Size Change: 0 B

Total Size: 802 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 52.6 kB
website/build/assets/css/styles.********.css 107 kB
website/build/assets/js/main.********.js 604 kB
website/build/index.html 38.9 kB

compressed-size-action

import {loadContext, type LoadContextOptions} from '../server';
import {build} from './build';

// Test temporary comment to trigger CI
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just add the workflow file to trigger conditions as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes :D better idea

@slorber
Copy link
Collaborator Author

slorber commented Jul 1, 2022

Will have to figure out if we still have a deploy token set on this repo 😅

Not sure we could run this workflow on external PRs, as we'd need a user to push to the origin? 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: ignore This PR is not meaningful enough to appear in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants