forked from Fraunhofer-AISEC/ids-clearing-house-service
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from ids-basecamp/v1
V1
- Loading branch information
Showing
261 changed files
with
20,725 additions
and
9,101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Bug Report | ||
|
||
## Describe the Bug | ||
_A clear and concise description of the bug._ | ||
|
||
### Expected Behavior | ||
_A clear and concise description of what you expected to happen._ | ||
|
||
### Observed Behavior | ||
_A clear and concise description of what happened instead._ | ||
|
||
## Steps to Reproduce | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Context Information | ||
_Add any other context about the problem here._ | ||
|
||
- Used version [e.g. EDC v1.0.0] | ||
- OS: [e.g. iOS, Windows] | ||
- ... | ||
|
||
## Detailed Description | ||
_If applicable, add screenshots and logs to help explain your problem._ | ||
|
||
## Possible Implementation | ||
_You already know the root cause of the erroneous state and how to fix it? Feel free to share your thoughts._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature Request | ||
about: Help us with new ideas | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Feature Request | ||
|
||
## Which Areas Would Be Affected? | ||
_e.g., DPF, CI, build, transfer, etc._ | ||
|
||
## Why Is the Feature Desired? | ||
_Are there any requirements?_ | ||
|
||
## Solution Proposal | ||
_If possible, provide a (brief!) solution proposal._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## What this PR changes/adds | ||
|
||
_Briefly describe WHAT your pr changes, which features it adds/modifies._ | ||
|
||
## Why it does that | ||
|
||
_Briefly state why the change was necessary._ | ||
|
||
## Further notes | ||
|
||
_List other areas of code that have changed but are not necessarily linked to the main feature. This could be method signature changes, package declarations, bugs that were encountered and were fixed inline, etc._ | ||
|
||
## Linked Issue(s) | ||
|
||
Closes # <-- _insert Issue number if one exists_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Deploy to Github-Pages | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [ development ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: mdBook Action | ||
uses: peaceiris/actions-mdbook@v1 | ||
|
||
- name: Install D2 (Diagram generator) | ||
run: curl -fsSL https://d2lang.com/install.sh | sh -s -- | ||
|
||
- name: Install mdbook-d2 integration | ||
run: cargo install mdbook-d2 --locked | ||
|
||
- name: Build book | ||
run: mdbook build | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./book | ||
|
||
permissions: | ||
contents: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- alpha | ||
- beta | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
outputs: | ||
new_tag_version: ${{ steps.tag_version.outputs.new_tag_version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Dry run to get the next release version | ||
id: tag_version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
export NEXT_TAG_VERSION=$(npx semantic-release --dry-run | grep 'The next release version is' | sed -E 's/.* ([[:alnum:].\-]+)$/\1/') | ||
echo "new_tag_version=${NEXT_TAG_VERSION}" >> $GITHUB_OUTPUT | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release | ||
|
||
publish-docker-images: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
if: ${{ needs.release.outputs.new_tag_version != '' }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- context: "ch-app" | ||
directory: "clearing-house-app" | ||
dockerfile: "Dockerfile" | ||
- context: "ch-edc" | ||
directory: "clearing-house-edc" | ||
dockerfile: "launchers/connector-prod/Dockerfile" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Build Docker image | ||
env: | ||
DOCKER_IMAGE_TAG: ${{ needs.release.outputs.new_tag_version }} | ||
run: | | ||
cd ${{ matrix.directory }} | ||
docker build -t ghcr.io/${{ github.repository }}/${{ matrix.context }}:$DOCKER_IMAGE_TAG -f ${{ matrix.dockerfile }} . | ||
- name: Push Docker image | ||
env: | ||
DOCKER_IMAGE_TAG: ${{ needs.release.outputs.new_tag_version }} | ||
run: docker push ghcr.io/${{ github.repository }}/${{ matrix.context }}:$DOCKER_IMAGE_TAG | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- beta | ||
- alpha | ||
- development | ||
|
||
jobs: | ||
app-unit-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: Build and Test | ||
run: | | ||
cd clearing-house-app | ||
cargo build | ||
cargo test | ||
edc-unit-tests: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Run Unit Tests | ||
run: | | ||
cd clearing-house-edc | ||
./gradlew test jacocoTestReport | ||
- name: Add Coverage Report | ||
id: jacoco | ||
uses: madrapps/jacoco-report@v1.6.1 | ||
with: | ||
paths: | | ||
${{ github.workspace }}/clearing-house-edc/core/build/reports/jacoco/test/jacocoTestReport.xml, | ||
${{ github.workspace }}clearing-house-edc/extensions/multipart/build/reports/jacoco/test/jacocoTestReport.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 70 | ||
min-coverage-changed-files: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
.settings/* | ||
/**/.settings | ||
/**/.classpath | ||
.project | ||
target | ||
data | ||
*.log | ||
.idea/ | ||
**/*.lock | ||
**/*.iml | ||
node_modules/ | ||
**/*.iml | ||
.vscode/ | ||
book/ | ||
ca/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "master", {"name": "beta", "prerelease": true}, {"name": "alpha", "prerelease": true}], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "angular", | ||
"releaseRules": [ | ||
{ "type": "docs", "release": "patch" }, | ||
{ "type": "refactor", "release": "patch" }, | ||
{ "scope": "no-release", "release": false } | ||
] | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/git", | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"successComment": false, | ||
"releasedLabels": false | ||
} | ||
] | ||
] | ||
} |
Oops, something went wrong.