fix: enable CI tests with build tags and add billing tests
Some checks failed
ci/woodpecker/push/build Pipeline failed
Some checks failed
ci/woodpecker/push/build Pipeline failed
- Add build tag to studio/embed.go to exclude from test builds - Create stub embed_testing.go for test builds - Update CI pipeline to use -tags testing - Add tests for webhook signature verification and status normalization Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cb4bebb42c
commit
b2b2a42ca9
4 changed files with 206 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !testing
|
||||
|
||||
package studio
|
||||
|
||||
import (
|
||||
|
|
|
|||
18
studio/embed_testing.go
Normal file
18
studio/embed_testing.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//go:build testing
|
||||
|
||||
package studio
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var distFS fs.FS
|
||||
|
||||
func Handler() http.Handler {
|
||||
return http.NotFoundHandler()
|
||||
}
|
||||
|
||||
func Read(name string) ([]byte, error) {
|
||||
return nil, fs.ErrNotExist
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue