Skip to content

GitHub Action to report TypeScript errors in Pull Requests

License

Notifications You must be signed in to change notification settings

fersilva16/ts-report-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

TypeScript report action

GitHub Action to report TypeScript errors in Pull Requests

Example

Usage

Only running in change files

- name: Get changed typescript files
  id: changed-typescript-files
  uses: tj-actions/changed-files@v20
  with:
    base_sha: ${{ github.event.pull_request.base.sha }}
    files: |
      **/*.ts
      **/*.tsx

- name: TypeScript report
  if: steps.changed-typescript-files.outputs.any_changed == 'true'
  uses: fersilva16/[email protected]
  with:
    files: ${{ steps.changed-typescript-files.outputs.all_changed_files }}

With project

- name: TypeScript report
  uses: fersilva16/[email protected]
  with:
    project: path/to/tsconfig.json