mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d4bf1b7af0
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52301 Readying for imminent productionisation. Changelog: [Internal] Reviewed By: j-piasecki Differential Revision: D77386064 fbshipit-source-id: 2769545eace4e6c09da0b2f0f34cf74b2fdcb730
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: "22"
|
|
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 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 --validate
|
|
- 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: Build types
|
|
shell: bash
|
|
run: yarn build-types --skip-snapshot
|
|
- name: Run typescript check of generated types
|
|
shell: bash
|
|
run: yarn test-generated-typescript
|