Skip to content

Commit 9ac6154

Browse files
committed
Initial commit
0 parents  commit 9ac6154

File tree

15 files changed

+389
-0
lines changed

15 files changed

+389
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @marcospassos
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: "🐞 Bug report"
3+
about: "Create a report to help us improve"
4+
labels: bug
5+
---
6+
7+
## 🐞 Bug report
8+
Please describe the problem you are experiencing.
9+
10+
### Steps to reproduce
11+
Please provide a minimal code snippet and the detailed steps for reproducing the issue.
12+
13+
1. Step 1
14+
2. Step 2
15+
3. Step 3
16+
17+
### Expected behavior
18+
Please describe the behavior you are expecting.
19+
20+
### Screenshots
21+
If applicable, add screenshots to help explain your problem.
22+
23+
### Additional context
24+
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: "✨ Feature request"
3+
about: "Suggest an idea for this project"
4+
labels: enhancement
5+
---
6+
7+
## ✨ Feature request
8+
Please provide a brief explanation of the feature.
9+
10+
### Motivation
11+
Please share the motivation for the new feature, and what problem it is solving.
12+
13+
### Example
14+
If the proposal involves a new or changed API, please include a basic code example.
15+
16+
### Alternatives
17+
Please describe the alternative solutions or features you've considered.
18+
19+
### Additional context
20+
Please provide any other context or screenshots about the feature request here.

.github/maven_settings.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<activeProfiles>
7+
<activeProfile>github</activeProfile>
8+
</activeProfiles>
9+
10+
<profiles>
11+
<profile>
12+
<id>github</id>
13+
<repositories>
14+
<repository>
15+
<id>github</id>
16+
<name>GitHub Apache Maven Packages</name>
17+
<url>https://maven.pkg.github.com/croct-tech/REPOSITORY</url>
18+
<releases><enabled>true</enabled></releases>
19+
<snapshots><enabled>true</enabled></snapshots>
20+
</repository>
21+
</repositories>
22+
<pluginRepositories>
23+
<pluginRepository>
24+
<id>github</id>
25+
<name>GitHub Apache Maven Packages</name>
26+
<url>https://maven.pkg.github.com/croct-tech/REPOSITORY</url>
27+
<releases><enabled>true</enabled></releases>
28+
<snapshots><enabled>true</enabled></snapshots>
29+
</pluginRepository>
30+
</pluginRepositories>
31+
</profile>
32+
</profiles>
33+
34+
<servers>
35+
<server>
36+
<id>github</id>
37+
<username>${env.MAVEN_GITHUB_USER}</username>
38+
<password>${env.MAVEN_GITHUB_TOKEN}</password>
39+
</server>
40+
</servers>
41+
</settings>

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Summary
2+
Please include a summary of the change and which issue is addressed.
3+
4+
- Fixes #(issue 1)
5+
- Fixes #(issue 2)
6+
- Fixes #(issue 3)
7+
8+
### Checklist
9+
10+
- [ ] My code follows the style guidelines of this project
11+
- [ ] I have performed a self-review of my own code
12+
- [ ] I have commented my code, particularly in hard-to-understand areas
13+
- [ ] I have made corresponding changes to the documentation
14+
- [ ] My changes generate no new warnings
15+
- [ ] I have added tests that prove my fix is effective or that my feature works
16+
- [ ] New and existing unit tests pass locally with my changes
17+
- [ ] Any dependent changes have been merged and published in downstream modules
18+
- [ ] I have checked my code and corrected any misspellings

.github/release-drafter.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name-template: '$NEXT_PATCH_VERSION'
2+
tag-template: '$NEXT_PATCH_VERSION'
3+
prerelease: true
4+
categories:
5+
- title: '🚀 Features'
6+
labels:
7+
- feature
8+
- title: '🔧 Enhancements'
9+
labels:
10+
- enhancement
11+
- title: '🐞 Bug Fixes'
12+
labels:
13+
- bug
14+
- title: '🚧 Maintenance'
15+
labels:
16+
- maintenance
17+
change-template: '- $TITLE (#$NUMBER), thanks [$AUTHOR](https://github.com/$AUTHOR)!'
18+
sort-by: merged_at
19+
sort-direction: descending
20+
branches:
21+
- master
22+
exclude-labels:
23+
- wontfix
24+
- duplicate
25+
- invalid
26+
- question
27+
no-changes-template: 'This release contains minor changes and bugfixes.'
28+
template: |-
29+
## What's Changed
30+
31+
$CHANGES
32+
33+
🎉 **Thanks to all contributors helping with this release:**
34+
$CONTRIBUTORS
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Validations
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- '**'
7+
branches:
8+
- master
9+
pull_request:
10+
types:
11+
- synchronize
12+
- opened
13+
14+
env:
15+
MAVEN_GITHUB_USER: croct-bot
16+
MAVEN_GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
17+
18+
jobs:
19+
validate:
20+
runs-on: ubuntu-18.04
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: Set up JDK 11
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: 11
27+
- name: Cache Maven packages
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.m2
31+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-m2
33+
34+
- name: Validate
35+
run: mvn -s .github/maven_settings.xml validate
36+
37+
security-checks:
38+
runs-on: ubuntu-18.04
39+
steps:
40+
- uses: actions/checkout@v1
41+
- name: Set up JDK 11
42+
uses: actions/setup-java@v1
43+
with:
44+
java-version: 11
45+
- name: Cache Maven packages
46+
uses: actions/cache@v2
47+
with:
48+
path: ~/.m2
49+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
50+
restore-keys: ${{ runner.os }}-m2
51+
52+
- name: Check security vulnerabilities
53+
run: mvn -s .github/maven_settings.xml org.owasp:dependency-check-maven:check
54+
55+
test:
56+
runs-on: ubuntu-18.04
57+
steps:
58+
- uses: actions/checkout@v1
59+
- name: Set up JDK 11
60+
uses: actions/setup-java@v1
61+
with:
62+
java-version: 11
63+
- name: Cache Maven packages
64+
uses: actions/cache@v2
65+
with:
66+
path: ~/.m2
67+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
68+
restore-keys: ${{ runner.os }}-m2
69+
70+
- uses: paambaati/[email protected]
71+
env:
72+
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TESTREPORTER_ID }}
73+
with:
74+
coverageCommand: mvn -s .github/maven_settings.xml test
75+
coverageLocations: target/site/jacoco/jacoco.xml:jacoco
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
env:
9+
MAVEN_GITHUB_USER: croct-bot
10+
MAVEN_GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 11
21+
- name: Cache Maven packages
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.m2
25+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: ${{ runner.os }}-m2
27+
28+
- name: Publish package
29+
run: |-
30+
mvn versions:set "-DnewVersion=${GITHUB_REF##*/}"
31+
mvn -s .github/maven_settings.xml -B package
32+
mvn -B deploy
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags-ignore:
8+
- '**'
9+
10+
jobs:
11+
release-draft:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Update release draft
15+
uses: release-drafter/release-drafter@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)