Skip to content

Commit

Permalink
test confirmity of genealogos output files
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin van der Veen committed Jan 16, 2024
1 parent b7cf437 commit e4885cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/verify_conformity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Verify the conformity of output files"

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- name: Verifying output packages
run: |
for f in ./genealogos/tests/fixtures/nixtract/success/*.out; do
nix run .#cyclonedx --extra-experimental-features 'nix-command flakes' -- validate --input-format json --input-file f
done
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
src = ./.;
doCheck = true;
};
inherit cyclonedx;
};
devShells = {
default =
pkgs.mkShell {
buildInputs = with pkgs; [
cargo
cyclonedx
rust-analyzer
rustPackages.clippy
rustc
Expand Down
1 change: 1 addition & 0 deletions nix/cyclonedx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ buildDotnetModule rec {
{
homepage = "https://github.com/CycloneDX/cyclonedx-cli";
description = "tool for SBOM analysis, merging, diffs and format conversions";
mainProgram = "cyclonedx";
license = licenses.asl20;
};
}

0 comments on commit e4885cb

Please sign in to comment.