Skip to main content

A ready to use CI/CD Pipeline for testing configurations with Conftest

Works with
This package works with Bun
This package works with Node.js
This package works with Deno
JSR Score
76%
Published
3 months ago (0.1.0)

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"
);
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @fx/conftest

Import symbol

import * as mod from "@fx/conftest";

Add Package

npx jsr add @fx/conftest

Import symbol

import * as mod from "@fx/conftest";

Add Package

yarn dlx jsr add @fx/conftest

Import symbol

import * as mod from "@fx/conftest";

Add Package

pnpm dlx jsr add @fx/conftest

Import symbol

import * as mod from "@fx/conftest";

Add Package

bunx jsr add @fx/conftest

Import symbol

import * as mod from "@fx/conftest";