From e59ef57784207621a8c1f98d943aac7fc422d355 Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Thu, 15 Dec 2022 18:02:52 -0600 Subject: [PATCH] add basic ci/cd --- ci/test.yml | 14 ++++++++++++++ pipeline.yml | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 ci/test.yml create mode 100644 pipeline.yml diff --git a/ci/test.yml b/ci/test.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/test.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..b04ac04 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,13 @@ +resources: +- name: repo + type: git + source: {uri: "http://192.168.0.201:3000/mitchell/school_app_api.git"} + +jobs: +- name: test + plan: + - get: repo + trigger: true + - task: test + file: repo/ci/test.yml +