Add GHA for Dead Code Analysis (#9052)
This commit is contained in:
parent
ed8ccb5d80
commit
a866005bea
2 changed files with 18 additions and 52 deletions
18
.github/workflows/static_analysis.yaml
vendored
18
.github/workflows/static_analysis.yaml
vendored
|
@ -74,3 +74,21 @@ jobs:
|
|||
|
||||
- name: Run Linter
|
||||
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/ci/layered.sh"
|
||||
|
||||
- name: Dead Code Analysis
|
||||
run: |
|
||||
cd element-web
|
||||
yarn run analyse:unused-exports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue