add basic ci/cd

This commit is contained in:
Mitchell Marino 2022-12-15 18:02:52 -06:00
parent 0d1b709c33
commit e59ef57784
2 changed files with 27 additions and 0 deletions

14
ci/test.yml Normal file
View File

@ -0,0 +1,14 @@
platform: linux
image_resource:
type: registry-image
source: {repository: rust}
inputs:
- name: repo
run:
path: cargo
args: ["test"]
dir: "repo"

13
pipeline.yml Normal file
View File

@ -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