diff --git a/convert/drone/convert_test.go b/convert/drone/convert_test.go index 5812ad9..eaeb9fc 100644 --- a/convert/drone/convert_test.go +++ b/convert/drone/convert_test.go @@ -24,7 +24,7 @@ import ( ) func TestConvert(t *testing.T) { - tests, err := filepath.Glob("testdata/examples/*.yaml") + tests, err := filepath.Glob("testdatav1/examples/*.yaml") if err != nil { t.Error(err) return diff --git a/convert/drone/testdatav1/examples/drone.yaml b/convert/drone/testdatav1/examples/drone.yaml new file mode 100644 index 0000000..4d5c55b --- /dev/null +++ b/convert/drone/testdatav1/examples/drone.yaml @@ -0,0 +1,23 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: backend + image: golang + environment: + PLUGIN_LOG_LEVEL: info + PLUGIN_ARTIFACT_REGION: us-east-1 + PLUGIN_ARTIFACT_BUCKET_NAME: unified-versioning-bucket + commands: + - go build + - go test + +- name: frontend + image: node + commands: + - npm install + - npm run test + +... \ No newline at end of file diff --git a/convert/drone/testdatav1/examples/drone.yaml.golden b/convert/drone/testdatav1/examples/drone.yaml.golden new file mode 100644 index 0000000..cfa6de8 --- /dev/null +++ b/convert/drone/testdatav1/examples/drone.yaml.golden @@ -0,0 +1,25 @@ +pipeline: + stages: + - clone: + disabled: true + name: default + runtime: machine + steps: + - name: backend + run: + container: + image: golang + env: + PLUGIN_ARTIFACT_BUCKET_NAME: unified-versioning-bucket + PLUGIN_ARTIFACT_REGION: us-east-1 + PLUGIN_LOG_LEVEL: info + script: |- + go build + go test + - name: frontend + run: + container: + image: node + script: |- + npm install + npm run test \ No newline at end of file diff --git a/convert/drone/testdatav1/examples/step.yaml b/convert/drone/testdatav1/examples/step.yaml new file mode 100644 index 0000000..546f1b2 --- /dev/null +++ b/convert/drone/testdatav1/examples/step.yaml @@ -0,0 +1,19 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: backend + image: golang + commands: + - go build + - go test + +- name: frontend + image: node + commands: + - npm install + - npm run test + +... \ No newline at end of file diff --git a/convert/drone/testdatav1/examples/step.yaml.golden b/convert/drone/testdatav1/examples/step.yaml.golden new file mode 100644 index 0000000..12a4cbe --- /dev/null +++ b/convert/drone/testdatav1/examples/step.yaml.golden @@ -0,0 +1,21 @@ +pipeline: + stages: + - clone: + disabled: true + name: default + runtime: machine + steps: + - name: backend + run: + container: + image: golang + script: |- + go build + go test + - name: frontend + run: + container: + image: node + script: |- + npm install + npm run test \ No newline at end of file