Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
eb802831
V
Vuepress
项目概览
计算机应用开发
/
前端
/
Vuepress
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vuepress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
eb802831
编写于
7月 25, 2020
作者:
V
Vinayak Kulkarni
提交者:
GitHub
7月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: use GitHub actions instead of CircleCI (#2417)
上级
7ca9fbc7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
42 addition
and
123 deletion
+42
-123
.circleci/config.yml
.circleci/config.yml
+0
-123
.github/workflows/pull-request-ci.yml
.github/workflows/pull-request-ci.yml
+42
-0
未找到文件。
.circleci/config.yml
已删除
100644 → 0
浏览文件 @
7ca9fbc7
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version
:
2.1
defaults
:
&defaults
working_directory
:
~/project
docker
:
-
image
:
circleci/node:latest
jobs
:
#------------------------------------------------------------
# 1. Install dependencies
#------------------------------------------------------------
install-dependencies
:
<<
:
*defaults
steps
:
-
checkout
-
restore_cache
:
keys
:
-
v1-deps-{{ checksum "yarn.lock" }}
-
v1-deps
-
run
:
name
:
'
Install
dependencies'
command
:
yarn --frozen-lockfile --non-interactive
-
save_cache
:
key
:
v1-deps-{{ checksum "yarn.lock" }}
paths
:
-
~/.cache/yarn
-
persist_to_workspace
:
root
:
~/project
paths
:
-
node_modules
-
packages/*/node_modules
-
packages/@vuepress/*/node_modules
#------------------------------------------------------------
# 2. Run parallel jobs:
# => tsc
# => tests
# => linter
# => docs linter
#------------------------------------------------------------
run-tsc
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
~/project
-
run
:
name
:
'
Run
tsc'
command
:
yarn tsc
-
persist_to_workspace
:
root
:
~/project
paths
:
-
packages/@vuepress/shared-utils/lib
run-tests
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
~/project
-
run
:
name
:
'
Run
tests'
command
:
yarn test
run-linter-check
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
~/project
-
run
:
name
:
'
Run
linter'
command
:
yarn lint
run-docs-linter-check
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
~/project
-
run
:
name
:
'
Run
md
linter'
command
:
yarn workspace docs lint-md
#------------------------------------------------------------
# 3. Build VuePress
#------------------------------------------------------------
build
:
<<
:
*defaults
steps
:
-
checkout
-
attach_workspace
:
at
:
~/project
-
run
:
name
:
'
Run
tests'
command
:
yarn build
#------------------------------------------------------------
# Workflows
#------------------------------------------------------------
workflows
:
version
:
2
build
:
jobs
:
-
install-dependencies
-
run-linter-check
:
{
requires
:
[
install-dependencies
]
}
-
run-docs-linter-check
:
{
requires
:
[
install-dependencies
]
}
-
run-tsc
:
{
requires
:
[
install-dependencies
]
}
-
run-tests
:
{
requires
:
[
run-tsc
]
}
-
build
:
{
requires
:
[
run-tests
,
run-linter-check
,
run-docs-linter-check
]
}
.github/workflows/pull-request-ci.yml
0 → 100644
浏览文件 @
eb802831
name
:
Pull request workflow
on
:
pull_request
:
jobs
:
pr
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/setup-node@v1
with
:
node-version
:
'
12'
-
name
:
Get yarn cache directory path
id
:
yarn-cache-dir-path
run
:
echo "::set-output name=dir::$(yarn cache dir)"
-
uses
:
actions/cache@v1
with
:
path
:
${{ steps.yarn-cache-dir-path.outputs.dir }}
key
:
${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
restore-keys
:
|
${{ runner.os }}-node-modules-
${{ runner.os }}-
-
name
:
Install dependencies
if
:
steps.yarn-cache.outputs.cache-hit != 'true'
run
:
yarn
-
name
:
Run tsc
run
:
yarn tsc
-
name
:
Run unit tests
run
:
yarn test
-
name
:
Check linter
run
:
yarn lint
-
name
:
Check markdown linter
run
:
yarn workspace docs lint-md
-
name
:
Build vuepress
run
:
yarn build
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录