Skip to content

Commit 70979a7

Browse files
author
chaoyuepan
committed
update readme
1 parent 243f3be commit 70979a7

File tree

5 files changed

+976
-947
lines changed

5 files changed

+976
-947
lines changed

.github/workflows/go.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: 'stable'
19+
20+
- name: Build
21+
run: go build -v ./...
22+
23+
test:
24+
runs-on: ubuntu-latest
25+
environment: ci
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v4
31+
with:
32+
go-version: 'stable'
33+
34+
- name: Run tests with coverage
35+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v4-beta
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ go.work
2525
go.work.sum
2626

2727
chat
28+
langchat
2829
!chat/
2930

3031
# env file

0 commit comments

Comments
 (0)