Skip to content

Commit

Permalink
docs: github actions chapter end
Browse files Browse the repository at this point in the history
  • Loading branch information
yanfeng.guan committed May 15, 2024
1 parent 1be75ff commit 2a883ff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test dev server
name: demo
run-name: ${{ github.actor }} start dev server

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# github actions 中文文档 https://docs.github.com/cn/actions/getting-started-with-github-actions

name: deploy for dev
name: 自动化部署

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: 自动化测试
run-name: ${{ github.actor }} is learning GitHub Actions

# events 定义触发事件以及条件
Expand Down
4 changes: 1 addition & 3 deletions CD_CD.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ learn for using Github Actions


## Github Actions
github提供的CI/CD平台, 用于创建工作流程,当你执行 push 或 merge 到 master 时自动执行构建, 测试或部署到生产环境.
github提供的CI/CD平台工具, 创建工作流程,当你执行 push 或 merge 操作时自动执行任务, 如: 构建, 测试或部署

划分两个workflows:
1. test.yml: dev分支, 自动构建, 部署到测试机器
Expand Down Expand Up @@ -61,8 +61,6 @@ jobs:




## Docker


Expand Down
2 changes: 1 addition & 1 deletion __test__/demo.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe('test demo', () => {
describe('test sample', () => {
test('1 + 1 = 2', () => {
expect(1 + 1).toBe(2);
});
Expand Down

0 comments on commit 2a883ff

Please sign in to comment.