MCPcopy
hub / github.com/nektos/act / TestReadWorkflow_StringEvent

Function TestReadWorkflow_StringEvent

pkg/model/workflow_test.go:12–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestReadWorkflow_StringEvent(t *testing.T) {
13 yaml := `
14name: local-action-docker-url
15on: push
16
17jobs:
18 test:
19 runs-on: ubuntu-latest
20 steps:
21 - uses: ./actions/docker-url
22`
23
24 workflow, err := ReadWorkflow(strings.NewReader(yaml), false)
25 assert.NoError(t, err, "read workflow should succeed")
26
27 assert.Len(t, workflow.On(), 1)
28 assert.Contains(t, workflow.On(), "push")
29}
30
31func TestReadWorkflow_ListEvent(t *testing.T) {
32 yaml := `

Callers

nothing calls this directly

Calls 2

ReadWorkflowFunction · 0.85
OnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…