Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions agent.codefly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ publisher: codefly.dev
kind: codefly:service
name: temporal
version: 0.0.18
source:
directory: .
agent: codefly.dev/go:0.0.56
release:
owner: workflow
workflow: releaser.yml
Expand Down
4 changes: 4 additions & 0 deletions release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ func TestReleaseDeclaresOnePublisherAndArchiveSBOMs(t *testing.T) {
}
var manifest struct {
Release struct{ Owner, Workflow string }
Source struct{ Directory, Agent string }
}
read("agent.codefly.yaml", &manifest)
if manifest.Source.Directory != "." || manifest.Source.Agent == "" {
t.Fatal("publication must select a source packager even when several compatible agents are installed")
}
if manifest.Release.Owner != "workflow" || manifest.Release.Workflow != "releaser.yml" {
t.Fatal("the tag workflow must be the sole artifact publisher")
}
Expand Down
Loading