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:
Option | Description | Default |
---|---|---|
Workflow Name | Custom name for the workflow | React Native Static Analysis |
Node.js Versions | Which Node.js versions to test against | [18] |
Package Manager | Which package manager to use | yarn |
TypeScript Check | Enable/disable TypeScript type checking | enabled |
ESLint | Enable/disable ESLint checks | enabled |
Prettier | Enable/disable Prettier format checking | enabled |
Unit Tests | Enable/disable Jest test runs | enabled |
Getting Started with Static Analysis
To create a Static Analysis workflow in the web app:
- Select "Static Analysis" from the workflow type dropdown
- Configure your triggers (push, pull request, etc.)
- Select which quality checks to enable
- Configure Node.js version and package manager
- Review the generated YAML and download
Creating a Workflow in the Web App
- 1
Choose your workflow type
Select either Static Analysis or Build workflow from the dropdown menu, depending on your needs.
- 2
Configure basic settings
Set workflow name, Node.js version, package manager, and trigger events.
- 3
Configure workflow-specific options
Set options specific to your chosen workflow type (quality checks or build settings).
- 4
Review the generated YAML
Check the preview panel to see the workflow YAML generated from your configuration.
- 5
Download and add to your repository
Download the workflow file and add it to your repository's
.github/workflows
directory.