Skip to content

Latest commit

 

History

History

conftest

Module: Conftest

dagger-min-version deno compatibility

A Dagger Module for testing configuration files using Conftest.

🚀 Usage

dagger -m github.com/tsirysndr/daggerverse/conftest call test \
  --src <source> \
  --files <files> \
  --policy [policy] \
  --output [output]
dagger -m github.com/tsirysndr/daggerverse/conftest call \
  dev --src <source> terminal

🧑‍🔬 Example

dagger -m github.com/tsirysndr/daggerverse/conftest call test \
  --src . \
  --files deployment.yaml \
  --policy policy \
  --output-format stdout
dagger call -m github.com/tsirysndr/daggerverse/conftest dev --src . terminal

🧑‍💻 Programmatic usage

import { test } from 'jsr:@fx/conftest';

await test(
  ".", 
  "deployment.yaml", 
  "policy", 
  "stdout"
);