mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
1e7600e867
commit
2847318294
1 changed files with 40 additions and 0 deletions
40
.gitlab-ci.yml
Normal file
40
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
image: node:14-buster
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
# Fetch dependencies and setup project for compilation.
|
||||||
|
install:
|
||||||
|
stage: prepare
|
||||||
|
script:
|
||||||
|
- yarn
|
||||||
|
|
||||||
|
# Type check the project
|
||||||
|
typecheck:
|
||||||
|
stage: test
|
||||||
|
needs:
|
||||||
|
- install
|
||||||
|
dependencies:
|
||||||
|
- install
|
||||||
|
script:
|
||||||
|
- yarn typecheck
|
||||||
|
|
||||||
|
# Lint the project and check prettier output.
|
||||||
|
lint:
|
||||||
|
stage: test
|
||||||
|
allow_failure: true
|
||||||
|
needs:
|
||||||
|
- install
|
||||||
|
dependencies:
|
||||||
|
- install
|
||||||
|
script:
|
||||||
|
- yarn lint
|
||||||
|
- yarn --check 'src/**/*.{js,jsx,ts,tsx}'
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- prepare
|
||||||
|
- test
|
Loading…
Reference in a new issue