🌐 AI搜索 & 代理 主页
Skip to content

Commit ee67712

Browse files
abemediachristian-korneck
authored andcommitted
ci: move to github actions
1 parent 8f74340 commit ee67712

File tree

2 files changed

+44
-51
lines changed

2 files changed

+44
-51
lines changed

.circleci/config.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/setup-go@v3
18+
with:
19+
go-version: '1.18'
20+
21+
- uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.7'
24+
25+
- id: go-cache-paths
26+
run: |
27+
echo "::set-output name=go-build::$(go env GOCACHE)"
28+
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
29+
30+
- name: Go Build Cache
31+
uses: actions/cache@v3
32+
with:
33+
path: ${{ steps.go-cache-paths.outputs.go-build }}
34+
key: ${{ runner.os }}-go-build-${{ github.sha }}
35+
restore-keys: ${{ runner.os }}-go-build-
36+
37+
- name: Go Mod Cache
38+
uses: actions/cache@v3
39+
with:
40+
path: ${{ steps.go-cache-paths.outputs.go-mod }}
41+
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
42+
restore-keys: ${{ runner.os }}-go-mod-
43+
44+
- run: go test ./... -cover

0 commit comments

Comments
 (0)