mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Add static analysis for tsc --strict (#405)
This commit is contained in:
parent
86326d8c4d
commit
b06f9645fd
35
.github/workflows/static_analysis.yaml
vendored
35
.github/workflows/static_analysis.yaml
vendored
@ -41,3 +41,38 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Linter
|
- name: Run Linter
|
||||||
run: "yarn run lint:js"
|
run: "yarn run lint:js"
|
||||||
|
|
||||||
|
tsc-strict:
|
||||||
|
name: Typescript Strict Error Checker
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
|
checks: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get diff lines
|
||||||
|
id: diff
|
||||||
|
uses: Equip-Collaboration/diff-line-numbers@v1.0.0
|
||||||
|
with:
|
||||||
|
include: '["\\.tsx?$"]'
|
||||||
|
|
||||||
|
- name: Detecting files changed
|
||||||
|
id: files
|
||||||
|
uses: futuratrepadeira/changed-files@v3.2.1
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pattern: '^.*\.tsx?$'
|
||||||
|
|
||||||
|
- uses: t3chguy/typescript-check-action@main
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
use-check: true
|
||||||
|
check-fail-mode: added
|
||||||
|
output-behaviour: annotate
|
||||||
|
ts-extra-args: '--strict'
|
||||||
|
files-changed: ${{ steps.files.outputs.files_updated }}
|
||||||
|
files-added: ${{ steps.files.outputs.files_created }}
|
||||||
|
files-deleted: ${{ steps.files.outputs.files_deleted }}
|
||||||
|
line-numbers: ${{ steps.diff.outputs.lineNumbers }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user