Skip to content

Latest commit

Β 

History

History
51 lines (38 loc) Β· 1.04 KB

README.md

File metadata and controls

51 lines (38 loc) Β· 1.04 KB

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"
);