mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[ci] Cleanup
- Made each workflow's name consistent
- Rename each workflow file with consistent naming scheme
- Promote flow-ci-ghaction to flow-ci
ghstack-source-id: 490b643dcd
Pull Request resolved: https://github.com/facebook/react/pull/30037
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Compiler Playground
|
||||
name: (Compiler) Playground
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,4 +1,4 @@
|
||||
name: React Compiler (Rust)
|
||||
name: (Compiler) Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,4 +1,4 @@
|
||||
name: React Compiler (TypeScript)
|
||||
name: (Compiler) TypeScript
|
||||
|
||||
on:
|
||||
push:
|
||||
2
.github/workflows/devtools_check_repro.yml
vendored
2
.github/workflows/devtools_check_repro.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: DevTools Check for bug repro
|
||||
name: (DevTools) Check for bug repro
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Commit Artifacts for Meta WWW and fbsource
|
||||
name: (Runtime) Commit Artifacts for Meta WWW and fbsource
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Fizz
|
||||
name: (Runtime) Fizz
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Flags
|
||||
name: (Runtime) Flags
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Flow
|
||||
name: (Runtime) Flow
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -44,4 +44,4 @@ jobs:
|
||||
path: "**/node_modules"
|
||||
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: node ./scripts/tasks/flow-ci-ghaction ${{ matrix.flow_inline_config_shortname }}
|
||||
- run: node ./scripts/tasks/flow-ci ${{ matrix.flow_inline_config_shortname }}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: facebook/react/fuzz_tests
|
||||
name: (Runtime) Fuzz tests
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 * * * *
|
||||
2
.github/workflows/runtime_test.yml
vendored
2
.github/workflows/runtime_test.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: React Runtime (Test)
|
||||
name: (Runtime) Test
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Lint
|
||||
name: (Shared) Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -1,5 +1,5 @@
|
||||
# Configuration for stale action workflow - https://github.com/actions/stale
|
||||
name: 'Manage stale issues and PRs'
|
||||
name: (Shared) Manage stale issues and PRs
|
||||
on:
|
||||
schedule:
|
||||
# Run hourly
|
||||
@@ -1,30 +0,0 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
process.on('unhandledRejection', err => {
|
||||
throw err;
|
||||
});
|
||||
|
||||
const runFlow = require('../flow/runFlow');
|
||||
const inlinedHostConfigs = require('../shared/inlinedHostConfigs');
|
||||
|
||||
async function check(shortName) {
|
||||
if (shortName == null) {
|
||||
throw new Error('Expected an inlinedHostConfig shortName');
|
||||
}
|
||||
const rendererInfo = inlinedHostConfigs.find(
|
||||
config => config.shortName === shortName
|
||||
);
|
||||
if (rendererInfo.isFlowTyped) {
|
||||
await runFlow(rendererInfo.shortName, ['check']);
|
||||
console.log();
|
||||
}
|
||||
}
|
||||
|
||||
check(process.argv[2]);
|
||||
@@ -14,24 +14,19 @@ process.on('unhandledRejection', err => {
|
||||
const runFlow = require('../flow/runFlow');
|
||||
const inlinedHostConfigs = require('../shared/inlinedHostConfigs');
|
||||
|
||||
// Parallelize tests across multiple tasks.
|
||||
const nodeTotal = process.env.CIRCLE_NODE_TOTAL
|
||||
? parseInt(process.env.CIRCLE_NODE_TOTAL, 10)
|
||||
: 1;
|
||||
const nodeIndex = process.env.CIRCLE_NODE_INDEX
|
||||
? parseInt(process.env.CIRCLE_NODE_INDEX, 10)
|
||||
: 0;
|
||||
|
||||
async function checkAll() {
|
||||
for (let i = 0; i < inlinedHostConfigs.length; i++) {
|
||||
if (i % nodeTotal === nodeIndex) {
|
||||
const rendererInfo = inlinedHostConfigs[i];
|
||||
async function check(shortName) {
|
||||
if (shortName == null) {
|
||||
throw new Error('Expected an inlinedHostConfig shortName');
|
||||
}
|
||||
const rendererInfo = inlinedHostConfigs.find(
|
||||
config => config.shortName === shortName
|
||||
);
|
||||
if (rendererInfo == null) {
|
||||
throw new Error(`Could not find inlinedHostConfig for ${shortName}`);
|
||||
}
|
||||
if (rendererInfo.isFlowTyped) {
|
||||
await runFlow(rendererInfo.shortName, ['check']);
|
||||
console.log();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
checkAll();
|
||||
check(process.argv[2]);
|
||||
|
||||
Reference in New Issue
Block a user