Skip to content

Add Rekor v2 mode, Ed25519ph, and persistent duplicate handling #18

Add Rekor v2 mode, Ed25519ph, and persistent duplicate handling

Add Rekor v2 mode, Ed25519ph, and persistent duplicate handling #18

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.90"
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.90"
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.90"
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --all-targets
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: test
POSTGRES_DB: siglog_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
SIGLOG_TEST_POSTGRES_URL: postgres://postgres:test@localhost:5432/siglog_test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.90"
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all
- uses: actions/setup-go@v5
with:
go-version-file: rekor-conformance/go.mod
cache-dependency-path: rekor-conformance/go.sum
- name: Rekor v2 interoperability
run: |
cargo build --bin siglog
cd rekor-conformance
go test -v -count=1