Workflow Types

Explore the available workflow types and their features

The React Native CI Workflow Builder offers pre-configured workflow templates for common CI/CD scenarios. Choose the workflow type that best suits your needs from the options below.

Static Analysis Workflow

Runs code quality checks to ensure your React Native code meets quality standards

The Static Analysis workflow helps you maintain code quality by running various checks on your codebase. It's designed to catch issues early in the development process and is ideal for running on pull requests.

Included Checks

  • TypeScript Type Checking

    Ensures your TypeScript code is type-safe and catches type errors

  • ESLint

    Checks your code against linting rules to ensure consistency and catch potential issues

  • Prettier

    Verifies code formatting to maintain consistent style across your codebase

  • Unit Tests

    Runs your Jest tests to ensure functionality works as expected

When to use Static Analysis Workflows

  • For continuous integration on your main development branches
  • As required checks on pull requests before merging
  • For early detection of quality and type issues
  • When you want to ensure all tests pass before proceeding with builds

Configuration Options

In the web app, you can configure the following options for Static Analysis workflows:

OptionDescriptionDefault
Workflow NameCustom name for the workflowReact Native Static Analysis
Node.js VersionsWhich Node.js versions to test against[18]
Package ManagerWhich package manager to useyarn
TypeScript CheckEnable/disable TypeScript type checkingenabled
ESLintEnable/disable ESLint checksenabled
PrettierEnable/disable Prettier format checkingenabled
Unit TestsEnable/disable Jest test runsenabled

Getting Started with Static Analysis

To create a Static Analysis workflow in the web app:

  1. Select "Static Analysis" from the workflow type dropdown
  2. Configure your triggers (push, pull request, etc.)
  3. Select which quality checks to enable
  4. Configure Node.js version and package manager
  5. Review the generated YAML and download

Creating a Workflow in the Web App

  1. 1

    Choose your workflow type

    Select either Static Analysis or Build workflow from the dropdown menu, depending on your needs.

  2. 2

    Configure basic settings

    Set workflow name, Node.js version, package manager, and trigger events.

  3. 3

    Configure workflow-specific options

    Set options specific to your chosen workflow type (quality checks or build settings).

  4. 4

    Review the generated YAML

    Check the preview panel to see the workflow YAML generated from your configuration.

  5. 5

    Download and add to your repository

    Download the workflow file and add it to your repository's .github/workflows directory.