This repository has been archived on 2025-12-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
garm-test-pipeline/argo-workflows/templates/unit-tests-template.yaml

22 lines
480 B
YAML
Raw Normal View History

2024-11-08 12:37:54 +01:00
apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
name: unit-tests-template
spec:
entrypoint: unit-tests
templates:
- name: unit-tests
container:
image: golang:1.23.2
command: [sh, -c]
args:
- |
set -e
cd /shared-data/repo
go test ./... -v
echo unit-test task completed
volumeMounts:
- name: shared-data
mountPath: /shared-data