Skip to content

Commit

Permalink
feat: quickstart-checker.yml 迁移至circleci||feat: quickstart-checker.ym…
Browse files Browse the repository at this point in the history
…l migrated to circleci (#1052)

Co-authored-by: wb-dwl906436@antgroup.com <wb-dwl906436@antgroup.com>
  • Loading branch information
Duan-0916 and wb-dwl906436@antgroup.com authored Jun 27, 2024
1 parent 8ca580a commit 4c666d8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 45 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2.1

jobs:
test:
machine: true # 使用 machine 执行器
steps:
- checkout

- run:
name: Install psmisc (for killall command)
command: |
sudo apt-get update
sudo apt-get install -y psmisc
# CircleCI 配置中的恢复缓存步骤
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- go-mod-v1-

# 安装依赖项
- run:
name: Install dependencies
command: |
go mod download
# 保存缓存步骤
- save_cache:
paths:
- "~/go/pkg/mod"
key: go-mod-v1-{{ checksum "go.sum" }}

# 测试步骤
- run:
name: Test quickstart in Golang 1.18.5
command: make quickstart

workflows:
version: 2
build_and_test:
jobs:
- test:
filters:
branches:
only:
- main
45 changes: 0 additions & 45 deletions .github/workflows/quickstart-checker.yml

This file was deleted.

0 comments on commit 4c666d8

Please sign in to comment.