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

An attempt to fix unexpected GitHub Actions failures #7980

Merged
merged 2 commits into from Apr 7, 2020

Conversation

thorn0
Copy link
Member

@thorn0 thorn0 commented Apr 7, 2020

Seems like GitHub Actions have the CI environment variable set now whereas some tests (added in #5804) depended on this variable.

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/pr-XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@thorn0
Copy link
Member Author

thorn0 commented Apr 7, 2020

Yes, this is it. Does GitHub announce such changes anywhere?

@fisker
Copy link
Sponsor Member

fisker commented Apr 7, 2020

Great!

@fisker
Copy link
Sponsor Member

fisker commented Apr 7, 2020

How about {mockIsCI: () => true}, clear to me .

@thorn0
Copy link
Member Author

thorn0 commented Apr 7, 2020

It's not dynamic. Why define this option as a function?

@fisker
Copy link
Sponsor Member

fisker commented Apr 7, 2020

I was thinking cosmiconfig mock has argument, in this way we can allow option to mock it.

@thorn0 thorn0 merged commit aacaf4b into prettier:master Apr 7, 2020
thorn0 added a commit that referenced this pull request Apr 11, 2020
brodybits added a commit to brodybits/prettierx that referenced this pull request Apr 13, 2020
based on: prettier/prettier#7980 by @thorn0

the updates from this CI workaround are expected to be overwritten by
a future merge of Prettier post-2.0.4 from prettier/prettier master

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: Christopher J. Brody <chris.brody+brodybits@gmail.com>
@thorn0 thorn0 deleted the fix-ci branch July 8, 2020 22:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants