Skip to content

Commit

Permalink
Merge pull request #125 from ids-basecamp/v1
Browse files Browse the repository at this point in the history
V1
  • Loading branch information
dhommen authored Sep 30, 2024
2 parents 6cb1ede + 09bd3ef commit 67f5b64
Show file tree
Hide file tree
Showing 261 changed files with 20,725 additions and 9,101 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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._
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
blank_issues_enabled: false
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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._
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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_
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
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
77 changes: 77 additions & 0 deletions .github/workflows/release-publish.yml
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

74 changes: 0 additions & 74 deletions .github/workflows/rust.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/test.yml
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
11 changes: 8 additions & 3 deletions .gitignore
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
26 changes: 26 additions & 0 deletions .releaserc
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
}
]
]
}
Loading

0 comments on commit 67f5b64

Please sign in to comment.