mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ci: verify JS build artifacts aren't committed
Building our JS packages dirties the repo. This makes sure we don't accidentally commit these to the repo, as it'll break Flow tests with an obscure error message. Changelog: [Internal] Testing: Ran this locally, the GH lint action should run on this PR. I'll intentionally add a build artifact to validate.
This commit is contained in:
@@ -47,6 +47,13 @@ try {
|
||||
throw Error(exitCode);
|
||||
}
|
||||
|
||||
describe('Test: No JS build artifacts');
|
||||
if (exec(`${YARN_BINARY} run build --check`).code) {
|
||||
echo('Failed, there are build artifacts in this commit.');
|
||||
exitCode = 1;
|
||||
throw Error(exitCode);
|
||||
}
|
||||
|
||||
describe('Test: Flow check');
|
||||
if (exec(`${YARN_BINARY} run flow-check`).code) {
|
||||
echo('Failed to run flow.');
|
||||
|
||||
Reference in New Issue
Block a user