hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

feat: Getting started to introduce continuous integration #24

Closed hupe1980 closed 5 years ago

hupe1980 commented 5 years ago

Description

@oliviertassinari I think that makes it easier for us to test

oliviertassinari commented 5 years ago

Nice! I have two questions:

hupe1980 commented 5 years ago

The tests use the source code from the repository. You can change the code and run the tests without publishing to npm. In the development folder gatsby is running in development mode: HMR and NoSSR. A production build with ssr is provided in the production folder. We should always look at both, so I created the two folders.

For example, this is a test that runs only in the production folder: https://github.com/hupe1980/gatsby-plugin-material-ui/blob/a2544f861c931690eeb3a0b08a8a5ecac6f9d312/e2e-tests/production-runtime/cypress/integration/server-side-injected-css.js#L1-L11

oliviertassinari commented 5 years ago

[…] You can change the code and run the tests without publishing to npm. […] We should always look at both.

Perfect 👌

oliviertassinari commented 5 years ago

@hupe1980 Did you consider using an integration tool? We are using CircleCI on Material-UI side.

hupe1980 commented 5 years ago

@oliviertassinari Yes, we should definitely use a CI tool. The repository is already linked to CircleCI. Only the configuration is missing.