Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagestedt committed May 28, 2020
0 parents commit 71cf46d
Show file tree
Hide file tree
Showing 45 changed files with 2,537 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
* text=auto eol=lf

*.java text diff=java
*.gradle text diff=groovy
*.gradle.kts text diff=groovy
*.css text diff=css
*.df text
*.htm text diff=html
*.html text diff=html
*.js text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.tld text
*.tag text
*.tagx text
*.xml text

*.class binary
*.dll binary
*.ear binary
*.jar binary
*.so binary
*.war binary
*.jks binary
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: "\U0001F6A8 Bug"
about: Did you come across a bug or unexpected behaviour differing from the docs?
labels: bug
---

<!--
Thanks for reporting a bug!
Before opening a new issue, please make sure that we do not have any duplicates already open.
You can ensure this by searching the issue list for this repository.
If there is a duplicate, please close your issue and add a comment to the existing issue instead.
-->

## Describe the bug

<!-- Describe your issue, but please be descriptive! Thanks again -->

## Expected behaviour

<!-- A clear and concise description of what you expected to happen. -->

## Steps to reproduce the issue

<!-- include screenshots, logs, code or other info to help explain your problem -->

<!--
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->

## Technical details

- Host Machine OS (Windows/Linux/Mac):

## Possible Fix

<!-- Not obligatory, but suggest a fix or reason for the bug -->

## Additional context

<!-- Add any other context about the problem here. -->
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "\U0001F381 Feature Request"
about: Do you have an idea for a new feature?
labels: feature request
---

<!--
Thanks for requesting a feature!
Before opening a new issue, please make sure that we do not have any duplicates already open.
You can ensure this by searching the issue list for this repository.
If there is a duplicate, please close your issue and add a comment to the existing issue instead.
-->

## Feature description

<!--
Provide a detailed description of the feature or improvement you are proposing.
What specific solution would you like? What is the expected behaviour?
Add any other context, screenshots, or code snippets about the feature request here as well.
-->

## Problem and motivation

<!--
Why is this change important to you? What is the problem this feature would solve?
How would you use it? How can it benefit other users?
-->

## Is this something you're interested in working on

<!-- Yes or No -->
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/03_enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: "\u23F1\uFE0F Enhancement"
about: Do you have an idea for an enhancement?
labels: enhancement
---

<!--
Thanks for proposing an enhancement!
Before opening a new issue, please make sure that we do not have any duplicates already open.
You can ensure this by searching the issue list for this repository.
If there is a duplicate, please close your issue and add a comment to the existing issue instead.
-->

## Current Implementation

<!-- Describe or point to the current implementation that you would like to see improved -->

## Suggested Enhancement

<!--
Outline the idea of your enhancement, by e.g., describing the algorithm you propose.
You can also create a Pull Request to outline your idea
-->

## Expected Benefits

<!--
Summarize how your enhancement could aid the implementation (performance, readability, memory consumption, battery consumption, etc.).
Please also back up with measurements or give detailed explanations for reduced runtime, memory consumption, etc.
-->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/04_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U00002753 Question"
about: If you have questions about pieces of the code or documentation for this component, please post them here.
labels: question
---

<!--
Thanks for submitting your question!
Before opening a new issue, please make sure that we do not have any duplicates already open.
You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
Also, please, have a look at our FAQs and existing questions before opening a new question.
-->

## Your Question

<!-- Include details about your question. -->

* Source File:
* Line(s):
* Question:
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/05_other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "\U0001F4AC Other"
about: For conceptual questions, please consider opening an issue in the documentation repository.
labels: other
---

<!--
Thanks for contributing to the project!
Before opening a new issue, please make sure that we do not have any duplicates already open.
You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
Also, be sure to check our readme first: https://github.com/corona-warn-app/cwa-verification-server
-->
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
21 changes: 21 additions & 0 deletions .github/workflows/ci-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci-dockerfile
on:
push:
branches:
- master
paths:
- Dockerfile
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- Dockerfile
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker pull hadolint/hadolint
- run: docker run --rm --interactive hadolint/hadolint < Dockerfile
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: ci
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/cache@v1
env:
cache-name: m2
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- uses: actions/setup-java@v1
with:
java-version: 11
- name: mvn package
if: ${{ github.event_name == 'pull_request' }}
run: mvn --batch-mode package
- name: mvn deploy
if: ${{ github.event_name == 'push' }}
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: mvn sonar
# if: ${{ github.event_name == 'push' }}
# run: |
# mvn --batch-mode verify sonar:sonar \
# -Dsonar.login=${SONAR_TOKEN} \
# -Dsonar.host.url=${SONAR_URL} \
# -Dsonar.organization=${GITHUB_REPOSITORY_OWNER} \
# -Dsonar.projectKey=${GITHUB_REPOSITORY/\//_}
# env:
# SONAR_URL: https://sonarcloud.io
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
with:
name: target
path: target
package:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: target
path: target
- name: docker build
if: ${{ github.event_name == 'pull_request' }}
run: docker build .
- name: docker build and push
if: ${{ github.event_name == 'push' }}
run: |
sudo apt-get install --yes --no-install-recommends libxml-xpath-perl
ARTIFACT_ID=$(xpath -q -e "/project/artifactId/text()" pom.xml)
VERSION=$(xpath -q -e "/project/version/text()" pom.xml)
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY_OWNER} --password-stdin
docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY}/${ARTIFACT_ID}:${VERSION} .
docker push docker.pkg.github.com/${GITHUB_REPOSITORY}/${ARTIFACT_ID}:${VERSION}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
nbactions.txt
nbactions.xml

### VS Code ###
.vscode/

/nb-configuration.xml
8 changes: 8 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file provides an overview of code owners in this repository.

# Each line is a file pattern followed by one or more owners.
# The last matching pattern has the most precedence.
# For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/.

# These are the default owners for the whole content of this repository. The default owners are automatically added as reviewers when you open a pull request, unless different owners are specified in the file.
* @alstiefel @jhagestedt @tence @kreincke @ascheibal @lbenthins @ChristianFirmenich
Loading

0 comments on commit 71cf46d

Please sign in to comment.