mirror of https://github.com/vector-im/riot-web
26 lines
773 B
YAML
26 lines
773 B
YAML
|
name: Lint
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches: [develop]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: c-hive/gha-yarn-cache@v2
|
||
|
- name: Install Deps
|
||
|
run: "./scripts/ci/install-deps.sh --ignore-scripts"
|
||
|
- name: Typecheck
|
||
|
run: "yarn run lint:types"
|
||
|
- name: Switch js-sdk to release mode
|
||
|
run: |
|
||
|
scripts/ci/js-sdk-to-release.js
|
||
|
pushd node_modules/matrix-js-sdk
|
||
|
yarn install
|
||
|
yarn run build:compile
|
||
|
yarn run build:types
|
||
|
popd
|
||
|
- name: Typecheck (release mode)
|
||
|
run: "yarn run lint:types"
|
||
|
|