Skip to content

Commit 68e98ee

Browse files
MarkDaoustcopybara-github
authored andcommitted
chore: add code
PiperOrigin-RevId: 931410333
1 parent 315c1b1 commit 68e98ee

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Run vet
22-
run: go vet ./...
22+
shell: bash
23+
run: go vet $(go list ./... | grep -v "gaos/models/interactions")
2324

2425
- name: Test
2526
run: go test --mode=unit -v ./...
@@ -51,7 +52,8 @@ jobs:
5152
uses: actions/checkout@v4
5253

5354
- name: Run vet
54-
run: go vet ./...
55+
shell: bash
56+
run: go vet $(go list ./... | grep -v "gaos/models/interactions")
5557

5658
- name: Test
5759
run: go test --mode=unit -v ./...
@@ -67,7 +69,8 @@ jobs:
6769
uses: actions/checkout@v4
6870

6971
- name: Run vet
70-
run: go vet ./...
72+
shell: bash
73+
run: go vet $(go list ./... | grep -v "gaos/models/interactions")
7174

7275
- name: Test
7376
run: go test --mode=unit -v ./...
@@ -84,7 +87,8 @@ jobs:
8487
uses: actions/checkout@v4
8588

8689
- name: Run vet
87-
run: go vet ./...
90+
shell: bash
91+
run: go vet $(go list ./... | grep -v "gaos/models/interactions")
8892

8993
- name: Test
9094
run: go test --mode=unit -v ./...
@@ -100,7 +104,8 @@ jobs:
100104
uses: actions/checkout@v4
101105

102106
- name: Run vet
103-
run: go vet ./...
107+
shell: bash
108+
run: go vet $(go list ./... | grep -v "gaos/models/interactions")
104109

105110
- name: Test
106111
run: go test --mode=unit -v ./...
@@ -117,4 +122,4 @@ jobs:
117122
uses: golangci/golangci-lint-action@v3
118123
with:
119124
version: latest
120-
args: --max-same-issues 0 --out-format colored-line-number --exclude-dirs=examples,interactions/internal
125+
args: --max-same-issues 0 --out-format colored-line-number --exclude-dirs=examples,interactions/internal,gaos/models/interactions

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ require (
2626
google.golang.org/grpc v1.66.2 // indirect
2727
google.golang.org/protobuf v1.34.2 // indirect
2828
)
29+
30+
require github.com/stretchr/testify v1.8.1
31+
32+
require (
33+
github.com/davecgh/go-spew v1.1.1 // indirect
34+
github.com/pmezard/go-difflib v1.0.0 // indirect
35+
gopkg.in/yaml.v3 v3.0.1 // indirect
36+
)

0 commit comments

Comments
 (0)