Skip to content

Commit 2ee963f

Browse files
committed
ci: use go workspace for cross-module test resolution
CI workflows now run from the workspace root using go.work so that local replace directives resolve correctly. This fixes the framework test failure where contract v0.8.0 from the module proxy was missing the new CreatedAt interface method.
1 parent 9549f03 commit 2ee963f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/framework.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
branches: ["main"]
66
paths:
77
- .github/workflows/framework.yml
8+
- contract/**
89
- framework/**
910
pull_request:
1011
branches: ["main"]
1112
paths:
1213
- .github/workflows/framework.yml
14+
- contract/**
1315
- framework/**
1416

1517
jobs:
@@ -28,6 +30,9 @@ jobs:
2830
go-version-file: "framework/go.mod"
2931
cache-dependency-path: "framework/go.sum"
3032

33+
- name: Link local modules
34+
run: go mod edit -replace github.com/studiolambda/cosmos/contract=../contract -replace github.com/studiolambda/cosmos/problem=../problem -replace github.com/studiolambda/cosmos/router=../router
35+
3136
- name: Download Dependencies
3237
run: go mod download
3338

0 commit comments

Comments
 (0)