Skip to content

Infra: build/test master before publish #6134

@hzoo

Description

@hzoo

Similar to smoke tests: #1837

Basically we should setup a test such that Babel itself would be able to compile itself with the latest built version in master (currently 7.0). Then we can find basic issues without having to publish first. Basic idea would be to just write so some temporary folders and then link something?

It would need to be able to revert back if something fails since otherwise it wouldn't even be able to compile anymore.


Context: Babel uses Babel to compile itself (we write using ES6+ and compile to ES5 for npm). However do that, we download the last version of Babel on npm. This also means that we have to publish to npm before testing that last published version on Babel itself. Ideally we would have a setup where before we publish (or on every PR if we wanted), we could switch out compiling Babel with the version of itself on master. Maybe it means doing an npm pack/link etc, but we should also check that it works with the monorepo/yarn/lerna setup that we have?

Metadata

Metadata

Assignees

Labels

PR: Internal 🏠A type of pull request used for our changelog categoriesPriority: Higharea: testshelp wantedoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions