wearerequired / lint-action

✨ GitHub Action for detecting and auto-fixing lint errors
MIT License
554 stars 130 forks source link

TSC linter fails when no errors #732

Closed coatesap closed 8 months ago

coatesap commented 8 months ago

Currently ESLint and Prettier linters seem to be working correctly in our workflow, but Typescript / tsc is failing even when there aren't any errors.

Our workflow step:

    - name: Run linters
      uses: wearerequired/lint-action@v2
      with:
        eslint: true
        prettier: true
        tsc: true
        eslint_dir: src/
        prettier_dir: src/
        tsc_dir: src/

The raw log looks like this:

2023-10-12T08:50:21.7972887Z ##[group]Run TypeScript
2023-10-12T08:50:21.7974380Z Verifying setup for TypeScript…
2023-10-12T08:50:22.3702825Z Verified TypeScript setup
2023-10-12T08:50:22.3703299Z Will use TypeScript to check the files with extensions ts
2023-10-12T08:50:22.3704341Z Linting files in /root/actions-runner/_work/{REPO_NAME}/{REPO_NAME}/src/ with TypeScript …
2023-10-12T08:50:25.9688569Z TypeScript found no issues (failure)
2023-10-12T08:50:25.9689272Z ##[endgroup]
github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

coatesap commented 8 months ago

I suspect there is still a bug in this action, but the problem has cleared up for us now - possibly due to ignoring some directories that didn't need checking. So I'll close this issue.