Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: quickstart-checker.yml 迁移至circleci||feat: quickstart-checker.yml migrated to circleci #1052

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading