Skip to content

Commit

Permalink
test: skip non-pipeline files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed May 24, 2021
1 parent a561027 commit 045a711
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main

import (
"context"
"strings"
"testing"
"time"

Expand All @@ -30,6 +31,9 @@ func Test(t *testing.T) {
infos, err := util.ReadDir(".")
assert.NoError(t, err)
for _, info := range infos {
if !strings.HasSuffix(info.Name(), "-pipeline.yaml") {
continue
}
pipeline := info.Items[0]
if pipeline.GetAnnotations()["dataflow.argoproj.io/test"] == "false" {
continue
Expand Down

0 comments on commit 045a711

Please sign in to comment.