forked from opossum-tool/OpossumUI
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.06 KB
/
check-code-quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH <https://www.tngtech.com>
#
# SPDX-License-Identifier: Apache-2.0
name: Check code quality
on:
push:
branches:
- main
- 'renovate/*'
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
check-code-quality:
runs-on: ubuntu-latest
if: |
!(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/'))
env:
CI: true
TARGET_BRANCH: origin/${{ github.event_name == 'pull_request' && github.base_ref || 'main' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 20
- run: yarn install --immutable
- run: yarn format-check
- run: yarn lint-commits
- run: yarn lint-check
- run: yarn typecheck
- run: yarn circular-import-check
- run: yarn unused-check
- run: yarn test:unit