Skip to content

Commit 154f3bc

Browse files
committed
update test.yml to cd into rpc/ intstead of gRPC_sinks
1 parent 99af615 commit 154f3bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: ./.github/actions/setup-protobuf
2727

2828
- name: Generate protobuf files
29-
run: go generate ./sinks/pb/
29+
run: cd rpc && go generate ./sinks/pb/
3030

3131
- name: GolangCI-Lint
3232
uses: golangci/golangci-lint-action@v8
@@ -35,14 +35,17 @@ jobs:
3535

3636
Unit-Test:
3737
runs-on: ubuntu-latest
38+
defaults:
39+
run:
40+
working-directory: rpc
3841
steps:
3942
- uses: actions/checkout@v4
4043

4144
- name: Set up Go
4245
uses: actions/setup-go@v5
4346
with:
4447
go-version: '1.23'
45-
cache-dependency-path: 'go.sum'
48+
cache-dependency-path: 'rpc/go.sum'
4649

4750
- name: Setup Protobuf
4851
uses: ./.github/actions/setup-protobuf
@@ -60,13 +63,11 @@ jobs:
6063
6164
- name: gRPC Golang Tests
6265
run: |
63-
cd gRPC_sinks
6466
go generate ./sinks/pb
6567
go test -timeout 20m -failfast -v -coverprofile=profile.cov ./...
6668
6769
- name: gRPC Python Tests
6870
run: |
69-
cd gRPC_sinks
7071
python3 -m grpc_tools.protoc -I sinks/pb --python_out=cmd/pyiceberg_receiver --grpc_python_out=cmd/pyiceberg_receiver sinks/pb/pgwatch.proto
7172
pytest
7273

0 commit comments

Comments
 (0)