加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 579 Bytes
一键复制 编辑 原始数据 按行查看 历史
zlq4863947 提交于 2019-12-21 12:06 . !4 增加ci配置
image: node:10.16.0-alpine
stages:
- build-and-test
- deploy
.npm-install: &npm-install |
yarn install --frozen-lockfile
# === Stage: Build and Test ===
build:
stage: build-and-test
before_script:
- *npm-install
- apk add git
script:
- yarn ci:build-check
test:
stage: build-and-test
before_script:
- *npm-install
- apk add git
script:
- yarn ci:test
coverage: /Statements\ \ \ :\ ([0-9\.]+\%)/
lint:
stage: build-and-test
before_script:
- *npm-install
- apk add git
script:
- yarn ci:format
- yarn ci:lint
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化