(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestReadWorkflow_StringEvent(t *testing.T) { |
| 13 | yaml := ` |
| 14 | name: local-action-docker-url |
| 15 | on: push |
| 16 | |
| 17 | jobs: |
| 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 | |
| 31 | func TestReadWorkflow_ListEvent(t *testing.T) { |
| 32 | yaml := ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…