mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51189 Changelog: [Internal] Adds a Github action that validates that the typegen script can successfully translate every necessary Flow file to TypeScript. Reviewed By: huntie Differential Revision: D74390916 fbshipit-source-id: 8c6d554c8681a2b92a8b182244a329ee538d9e53
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
name: lint
|
|
description: Runs all the linters in the codebase
|
|
inputs:
|
|
node-version:
|
|
description: "The node.js version to use"
|
|
required: false
|
|
default: "20"
|
|
github-token:
|
|
description: "The GitHub token used by pull-bot"
|
|
required: true
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup node.js
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
- name: Run yarn install
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Run linters against modified files (analysis-bot)
|
|
shell: bash
|
|
run: yarn lint-ci
|
|
env:
|
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
|
GITHUB_PR_NUMBER: ${{ github.event.number }}
|
|
- name: Lint code
|
|
shell: bash
|
|
run: ./.github/workflow-scripts/exec_swallow_error.sh yarn lint --format junit -o ./reports/junit/eslint/results.xml
|
|
- name: Lint java
|
|
shell: bash
|
|
run: ./.github/workflow-scripts/exec_swallow_error.sh yarn lint-java --check
|
|
- name: Lint file structure
|
|
shell: bash
|
|
run: ./.github/workflow-scripts/lint_files.sh
|
|
- name: Verify not committing repo after running build
|
|
shell: bash
|
|
run: yarn run build --check
|
|
- name: Run flowcheck
|
|
shell: bash
|
|
run: yarn flow-check
|
|
- name: Run typescript check
|
|
shell: bash
|
|
run: yarn test-typescript
|
|
- name: Check license
|
|
shell: bash
|
|
run: ./.github/workflow-scripts/check_license.sh
|
|
- name: Check formatting
|
|
shell: bash
|
|
run: yarn run format-check
|
|
- name: Lint markdown
|
|
shell: bash
|
|
run: yarn run lint-markdown
|
|
- name: Validate typegen
|
|
shell: bash
|
|
run: yarn build-types
|