Skip to content

Commit

Permalink
conformance: use child binary crate
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com>
  • Loading branch information
jleightcap committed Aug 1, 2023
1 parent b33b1de commit d6a7b54
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: sigstore/sigstore-conformance@v0.0.5
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
entrypoint: cargo run --example conformance_suite --
command: build
args: --manifest-path=tests/conformance/Cargo.toml
- uses: sigstore/sigstore-conformance@main
with:
entrypoint: ${{ github.workspace }}/tests/conformance/target/debug/sigstore
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ testcontainers = "0.14"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
hex = "0.4.3"

# conformance CLI

[[example]]
name = "conformance_suite"
path = "examples/conformance/main.rs"

# cosign example mappings

[[example]]
Expand Down
16 changes: 16 additions & 0 deletions tests/conformance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "sigstore-conformance"
description = "sigstore conformance testing workflow"
version = "0.0.1"
edition = "2021"
authors = ["sigstore-rs developers"]
license = "Apache-2.0"

[dependencies]
clap = { version = "4.0.8", features = ["derive"] }
sigstore = { path = "../../" }
tokio = { version = "1.17.0", features = ["rt"] }

[[bin]]
name = "sigstore"
path = "conformance.rs"
File renamed without changes.

0 comments on commit d6a7b54

Please sign in to comment.