[LOCAL] Run prettier

This commit is contained in:
Riccardo Cipolleschi
2023-10-24 15:14:33 +01:00
parent f068f4a903
commit 4ddf7cb025
3 changed files with 16 additions and 6 deletions
+11 -4
View File
@@ -128,10 +128,11 @@ async function _findUrlForJob(jobName, artifactPath) {
_throwIfJobIsUnsuccessful(job);
const artifacts = await _getJobsArtifacts(job.job_number);
let artifact = artifacts.find(artifact => artifact.path.indexOf(artifactPath) > -1)
let artifact = artifacts.find(
artifact => artifact.path.indexOf(artifactPath) > -1,
);
if (!artifact) {
throw new Error(`I could not find the artifact with path ${artifactPath}`);
}
return artifact.url;
}
@@ -161,8 +162,14 @@ async function artifactURLForMavenLocal() {
}
async function artifactURLForReactNative() {
let shortCommit = exec('git rev-parse HEAD', {silent: true}).toString().trim().slice(0, 9);
return _findUrlForJob('build_npm_package', `react-native-1000.0.0-${shortCommit}.tgz`);
let shortCommit = exec('git rev-parse HEAD', {silent: true})
.toString()
.trim()
.slice(0, 9);
return _findUrlForJob(
'build_npm_package',
`react-native-1000.0.0-${shortCommit}.tgz`,
);
}
async function artifactURLForHermesRNTesterAPK(emulatorArch) {
+4 -1
View File
@@ -189,7 +189,10 @@ async function testRNTestProject(circleCIArtifacts) {
// in local testing, 1000.0.0 mean we are on main, every other case means we are
// working on a release version
const buildType = baseVersion !== '1000.0.0' ? 'release' : 'dry-run';
const shortCommit = exec('git rev-parse HEAD', {silent: true}).toString().trim().slice(0, 9);
const shortCommit = exec('git rev-parse HEAD', {silent: true})
.toString()
.trim()
.slice(0, 9);
// we need to add the unique timestamp to avoid npm/yarn to use some local caches
const dateIdentifier = new Date()
+1 -1
View File
@@ -170,7 +170,7 @@ async function downloadArtifactsFromCircleCI(
) {
const mavenLocalURL = await circleCIArtifacts.artifactURLForMavenLocal();
const hermesURL = await circleCIArtifacts.artifactURLHermesDebug();
const reactNativeURL = await circleCIArtifacts.artifactURLForReactNative()
const reactNativeURL = await circleCIArtifacts.artifactURLForReactNative();
const hermesPath = path.join(
circleCIArtifacts.baseTmpPath(),