Add GHA for Dead Code Analysis (#22830)
This commit is contained in:
parent
31636dcbaa
commit
0d18e4ea8e
1 changed files with 16 additions and 0 deletions
16
.github/workflows/static_analysis.yaml
vendored
16
.github/workflows/static_analysis.yaml
vendored
|
@ -63,3 +63,19 @@ jobs:
|
||||||
|
|
||||||
- name: Run Linter
|
- name: Run Linter
|
||||||
run: "yarn run lint:style"
|
run: "yarn run lint:style"
|
||||||
|
|
||||||
|
analyse_dead_code:
|
||||||
|
name: "Analyse Dead Code"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
|
- name: Install Deps
|
||||||
|
run: "scripts/layered.sh"
|
||||||
|
|
||||||
|
- name: Dead Code Analysis
|
||||||
|
run: "yarn run analyse:unused-exports"
|
||||||
|
|
Loading…
Add table
Reference in a new issue