mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-10 06:15:17 +00:00
* Fix i18n check bypass for RiotTranslateBot * Consolidate i18n check into a reusable workflow
43 lines
976 B
YAML
43 lines
976 B
YAML
name: Static Analysis
|
|
on:
|
|
pull_request: { }
|
|
push:
|
|
branches: [ develop, master ]
|
|
jobs:
|
|
ts_lint:
|
|
name: "Typescript Syntax Check"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
# Does not need branch matching as only analyses this layer
|
|
- name: Install Deps
|
|
run: "yarn install --pure-lockfile"
|
|
|
|
- name: Typecheck
|
|
run: "yarn run lint:types"
|
|
|
|
i18n_lint:
|
|
name: "i18n Check"
|
|
uses: matrix-org/matrix-react-sdk/.github/workflows/i18n_check.yml@develop
|
|
|
|
js_lint:
|
|
name: "ESLint"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
cache: 'yarn'
|
|
|
|
# Does not need branch matching as only analyses this layer
|
|
- name: Install Deps
|
|
run: "yarn install --pure-lockfile"
|
|
|
|
- name: Run Linter
|
|
run: "yarn run lint:js"
|