Skip to content

Commit

Permalink
add workflow to verify BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Oct 11, 2024
1 parent c2a83fb commit 4e99596
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,15 @@ jobs:
if: github.event_name == 'pull_request'
uses: eclipse-edc/.github/.github/workflows/verify-openapi.yml@main
secrets: inherit

Verify-FC-BOM:
strategy:
fail-fast: false

# we can't test the "controlplane-oauth2-com" because it only starts successfully if the public key is already in the vault
matrix:
bom-directory: [ "dist/bom/federatedcatalog-dcp-bom" ]
uses: eclipse-edc/.github/.github/workflows/verify-bom.yml@main
with:
module-dir: ${{ matrix.bom-directory }}
properties-file: example.properties
4 changes: 2 additions & 2 deletions dist/bom/federatedcatalog-dcp-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Microsoft Corporation
* Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
Expand All @@ -8,7 +8,7 @@
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Microsoft Corporation - initial API and implementation
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
*
*/

Expand Down
2 changes: 2 additions & 0 deletions dist/bom/federatedcatalog-dcp-bom/example.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ web.http.port=8080
web.http.path=/api
web.http.catalog.port=8081
web.http.catalog.path=/api/catalog
edc.catalog.cache.execution.period.seconds=5
edc.catalog.cache.execution.delay.seconds=0
34 changes: 34 additions & 0 deletions dist/bom/federatedcatalog-feature-sql-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation
*
*/

plugins {
`java-library`
}

dependencies {

// sql modules
// api(project(":extensions:store:sql:identity-hub-credentials-store-sql"))
// api(project(":extensions:store:sql:identity-hub-did-store-sql"))
// api(project(":extensions:store:sql:identity-hub-keypair-store-sql"))
// api(project(":extensions:store:sql:identity-hub-participantcontext-store-sql"))

api(libs.edc.sql.core)
api(libs.edc.sql.pool)
api(libs.edc.sql.transactionlocal)
api(libs.edc.sql.bootstrapper)

// third-party deps
api(libs.postgres)
}
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ restAssured = "5.5.0"
jackson = "2.17.2"
jupiter = "5.11.0"
assertj = "3.26.3"
postgres = "42.7.4"

[libraries]
awaitility = { module = "org.awaitility:awaitility", version.ref = "awaitility" }
Expand Down Expand Up @@ -43,6 +44,8 @@ edc-did-core = { module = "org.eclipse.edc:identity-did-core", version.ref = "ed
edc-did-web = { module = "org.eclipse.edc:identity-did-web", version.ref = "edc" }
edc-oauth2-client = { module = "org.eclipse.edc:oauth2-client", version.ref = "edc" }
edc-sql-core = { module = "org.eclipse.edc:sql-core", version.ref = "edc" }
edc-sql-pool = { module = "org.eclipse.edc:sql-pool-apache-commons", version.ref = "edc" }
edc-sql-transactionlocal = { module = "org.eclipse.edc:transaction-local", version.ref = "edc" }
edc-sql-bootstrapper = { module = "org.eclipse.edc:sql-bootstrapper", version.ref = "edc" }
edc-junit = { module = "org.eclipse.edc:junit", version.ref = "edc" }
edc-json-ld-lib = { module = "org.eclipse.edc:json-ld-lib", version.ref = "edc" }
Expand Down Expand Up @@ -79,6 +82,7 @@ edc-controlplane-transform = { module = "org.eclipse.edc:control-plane-transform
jackson-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-datatype-jsr310", version.ref = "jackson" }
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "jupiter" }
assertj = { module = "org.assertj:assertj-core", version.ref = "assertj" }
postgres = { module = "org.postgresql:postgresql", version.ref = "postgres" }

[bundles]
edc-connector = ["edc-boot", "edc-core-connector", "edc-core-jersey", "edc-api-observability", "edc-config-filesystem",
Expand Down

0 comments on commit 4e99596

Please sign in to comment.