Skip to content

chore(ci): run V1 Build and Migration CLI tests conditionally on CI#3863

Merged
slorber merged 6 commits intofacebook:masterfrom
Simek:run-some-part-of-ci-coditionally
Dec 2, 2020
Merged

chore(ci): run V1 Build and Migration CLI tests conditionally on CI#3863
slorber merged 6 commits intofacebook:masterfrom
Simek:run-some-part-of-ci-coditionally

Conversation

@Simek
Copy link
Copy Markdown
Contributor

@Simek Simek commented Dec 2, 2020

Motivation

This PR is an attempt to optimize CI workflows a bit more to improve the time required to check every PR.

I have utilized the @dorny/paths-filter action to add check based on the modified files in the PR so now:

  • V1 build won't be running on Windows Pipeline until packages/docusuaurs-1.x or packages/docusuaurs-init-1.x files have been changed.
  • Migration CLI job won't run until packages/docusuaurs-migration includes the changes.

This is the first time I have used this action, so the initial version might be not correct. Any tips and ideas for further optimizations are welcome!

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

Run the CI! 😉

Related PRs

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 2, 2020
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 2, 2020

Deploy preview for docusaurus-2 ready!

Built without sensitive environment variables with commit d0d667b

https://deploy-preview-3863--docusaurus-2.netlify.app

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2020

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 71
🟢 Accessibility 99
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-3863--docusaurus-2.netlify.app/classic/

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2020

Size Change: 0 B

Total Size: 157 kB

ℹ️ View Unchanged
Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 20.7 kB 0 B
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 5.84 kB 0 B
website/build/main.********.js 113 kB 0 B
website/build/styles.********.css 17.5 kB 0 B

compressed-size-action

@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Dec 2, 2020
@slorber
Copy link
Copy Markdown
Collaborator

slorber commented Dec 2, 2020

Thanks :)

outputs:
migration: ${{ steps.filter.outputs.migration }}
steps:
- uses: dorny/paths-filter@v2
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

strange that it works because on another brranch it fails due to missing git checkout step (I think)

#3907

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: maintenance This PR does not produce any behavior differences to end users when upgrading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants