From 24b308312ed2e383733ca4c4031167869253d0ef Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 12 Jul 2023 22:33:30 -0400 Subject: [PATCH] Configure a pipeline to run tests for every commit. --- .lighthouse/triggers.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.lighthouse/triggers.yaml b/.lighthouse/triggers.yaml index fb1857b2..9393651a 100644 --- a/.lighthouse/triggers.yaml +++ b/.lighthouse/triggers.yaml @@ -56,6 +56,36 @@ spec: params: - name: GIT_BRANCH value: "master" + - name: cargo-test + agent: tekton-pipeline + branches: + - ^.*$ + context: cargo-test + max_concurrency: 1 + # Override https-based url from lighthouse events. + clone_uri: "git@code.fizz.buzz:talexander/organic.git" + pipeline_run_spec: + serviceAccountName: build-bot + pipelineRef: + name: cargo-test-pipeline + namespace: lighthouse + workspaces: + - name: git-source + volumeClaimTemplate: + spec: + storageClassName: "nfs-client" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + subPath: rust-source + params: + - name: cargo-test-args + value: + - --lib + - --test + - test_loader - name: build-cargo-fmt agent: tekton-pipeline branches: