File tree Expand file tree Collapse file tree 5 files changed +976
-947
lines changed
Expand file tree Collapse file tree 5 files changed +976
-947
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ go.work
2525go.work.sum
2626
2727chat
28+ langchat
2829! chat /
2930
3031# env file
You can’t perform that action at this time.
0 commit comments