-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RN][CI]Update the testing-script to use github actions
- Loading branch information
1 parent
b19bf2b
commit 5ad1e44
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow strict-local | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const chalk = require('chalk'); | ||
const fetch = require('node-fetch'); | ||
|
||
async function initialize( | ||
ciToken /*: string */, | ||
baseTempPath /*: string */, | ||
branchName /*: string */, | ||
useLastSuccessfulPipeline /*: boolean */ = false, | ||
) { | ||
console.info('Getting GHA information'); | ||
// circleCIHeaders = {'Circle-Token': ciToken}; | ||
// baseTemporaryPath = baseTempPath; | ||
// exec(`mkdir -p ${baseTemporaryPath}`); | ||
// const pipeline = await ( | ||
// useLastSuccessfulPipeline ? _getLastSuccessfulPipeline : _getLatestPipeline | ||
// )(branchName); | ||
// const testsWorkflow = await _getTestsWorkflow(pipeline.id); | ||
// const jobsResults = await _getCircleCIJobs(testsWorkflow.id); | ||
|
||
// jobs = jobsResults.flatMap(j => j); | ||
} | ||
|
||
module.exports = { | ||
initialize | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters