From ee96d81d24fe664466879f9dd754c7dee60390d4 Mon Sep 17 00:00:00 2001 From: Shin Yoon Date: Sun, 11 Mar 2018 15:34:28 -0700 Subject: [PATCH] Added test-pipeline --- .gitignore | 3 ++- test-pipelines/pipeline.yml | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 test-pipelines/pipeline.yml diff --git a/.gitignore b/.gitignore index d5309b3..425dd63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/examples/ **/node_modules/ -**/output_dir \ No newline at end of file +**/output_dir +**/*parameters.yml \ No newline at end of file diff --git a/test-pipelines/pipeline.yml b/test-pipelines/pipeline.yml new file mode 100644 index 0000000..4279a91 --- /dev/null +++ b/test-pipelines/pipeline.yml @@ -0,0 +1,45 @@ +resource_types: + - name: pull-request-events + type: docker-image + source: + repository: shinmyung0/pullrequest-events-resource + tag: latest + +resources: + - name: github-pr-events + type: pull-request-events + check_every: 30s + source: + access_token: ((github-access-token)) + owner: ((repo-owner)) + repo: ((repo-name)) + graphql_api: ((github-graphql-api)) + base_branch: master + first: 1 + states: + - MERGED + - CLOSED + +jobs: +- name: test + plan: + - get: github-pr-events + trigger: true + - task: test + config: + platform: linux + + image_resource: + type: docker-image + source: + repository: busybox + + inputs: + - name: github-pr-events + + run: + path: cat + args: + - github-pr-events/pull_request + +