Skip to content

Comments

Make CI work (resolves #225)#227

Merged
DABH merged 12 commits intowinstonjs:masterfrom
curledUpSheep:ci-setup
Jul 13, 2023
Merged

Make CI work (resolves #225)#227
DABH merged 12 commits intowinstonjs:masterfrom
curledUpSheep:ci-setup

Conversation

@curledUpSheep
Copy link
Contributor

@curledUpSheep curledUpSheep commented Jul 13, 2023

See #225.

I strongly suggest going commit by commit.

My approach to the linting fixes:

  • Disable rules that don't seem to fit the project well
  • Fix at least all errors
  • Keep some warnings around as "things we may want to fix at a later time". These show up as warnings in VS Code and in GitHub Actions, but they don't block the pipeline.
    • It may make sense to disable some of these as well (complexity, max statements) but I'm not sure.

@curledUpSheep curledUpSheep changed the title CI (see issue #225) Make CI work Jul 13, 2023
By default, mongodb-memory-server pulls in a MongoDB binary on install.
On a first run of 'npm ci', this makes npm seem to hang for no reason.
No progress bar or anything is shown either.

With this change, the MongoDB binary is only downloaded when needed.
If needed, the download happens during tests, with progress indication.
No download will happen for people using local Mongo for testing.
@curledUpSheep curledUpSheep changed the title Make CI work Make CI work (resolves #225) Jul 13, 2023
Copy link
Contributor

@DABH DABH left a comment

Choose a reason for hiding this comment

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

This is fantastic! Thank you for this critical and valued contribution to the transport ❤️

@DABH DABH merged commit 1b0f95d into winstonjs:master Jul 13, 2023
@curledUpSheep curledUpSheep deleted the ci-setup branch July 17, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants