Skip to content

Commit 415bba6

Browse files
committed
Initial commit
0 parents  commit 415bba6

14 files changed

+653
-0
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
ignore:
13+
- dependency-name: "org.apache.maven.plugins:maven-compiler-plugin"

.github/project.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Quarkiverse Extension
2+
release:
3+
current-version: 0
4+
next-version: 0.0.1-SNAPSHOT
5+
856 Bytes
Binary file not shown.

.github/workflows/build.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths-ignore:
8+
- '.gitignore'
9+
- 'CODEOWNERS'
10+
- 'LICENSE'
11+
- '*.md'
12+
- '*.adoc'
13+
- '*.txt'
14+
- '.all-contributorsrc'
15+
pull_request:
16+
paths-ignore:
17+
- '.gitignore'
18+
- 'CODEOWNERS'
19+
- 'LICENSE'
20+
- '*.md'
21+
- '*.adoc'
22+
- '*.txt'
23+
- '.all-contributorsrc'
24+
25+
jobs:
26+
build:
27+
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
33+
- name: Set up JDK 11
34+
uses: actions/setup-java@v1
35+
with:
36+
java-version: 11
37+
38+
- name: Get Date
39+
id: get-date
40+
run: |
41+
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
42+
shell: bash
43+
- name: Cache Maven Repository
44+
id: cache-maven
45+
uses: actions/cache@v2
46+
with:
47+
path: ~/.m2/repository
48+
# refresh cache every month to avoid unlimited growth
49+
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
50+
51+
- name: Build with Maven
52+
run: mvn -B formatter:validate verify --file pom.xml
53+

.github/workflows/pre-release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Quarkiverse Pre Release
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/project.yml'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
name: pre release
12+
13+
steps:
14+
- uses: radcortez/project-metadata-action@master
15+
name: retrieve project metadata
16+
id: metadata
17+
with:
18+
github-token: ${{secrets.GITHUB_TOKEN}}
19+
metadata-file-path: '.github/project.yml'
20+
21+
- name: Validate version
22+
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
23+
run: |
24+
echo '::error::Cannot release a SNAPSHOT version.'
25+
exit 1
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "Quarkus ecosystem CI"
2+
on:
3+
workflow_dispatch:
4+
watch:
5+
types: [started]
6+
7+
# For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened,
8+
# while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository
9+
10+
env:
11+
ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci
12+
ECOSYSTEM_CI_REPO_FILE: context.yaml
13+
JAVA_VERSION: 11
14+
15+
#########################
16+
# Repo specific setting #
17+
#########################
18+
19+
ECOSYSTEM_CI_REPO_PATH: quarkus-<YOUR_REPOSITORY>
20+
21+
jobs:
22+
build:
23+
name: "Build against latest Quarkus snapshot"
24+
runs-on: ubuntu-latest
25+
# Allow <ADMIN> to manually launch the ecosystem CI in addition to the bots
26+
if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot' || github.actor == '<ADMIN>'
27+
28+
steps:
29+
- name: Install yq
30+
run: sudo add-apt-repository ppa:rmescandon/yq && sudo apt update && sudo apt install yq -y
31+
32+
- name: Set up Java
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: ${{ env.JAVA_VERSION }}
36+
37+
- name: Checkout repo
38+
uses: actions/checkout@v2
39+
with:
40+
path: current-repo
41+
ref: master
42+
43+
- name: Checkout Ecosystem
44+
uses: actions/checkout@v2
45+
with:
46+
repository: ${{ env.ECOSYSTEM_CI_REPO }}
47+
ref: master
48+
path: ecosystem-ci
49+
50+
- name: Setup and Run Tests
51+
run: ./ecosystem-ci/setup-and-test
52+
env:
53+
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }}

.github/workflows/release.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Quarkiverse Release
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
paths:
7+
- '.github/project.yml'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
name: release
13+
if: ${{github.event.pull_request.merged == true}}
14+
15+
steps:
16+
- uses: radcortez/project-metadata-action@master
17+
name: Retrieve project metadata
18+
id: metadata
19+
with:
20+
github-token: ${{secrets.GITHUB_TOKEN}}
21+
metadata-file-path: '.github/project.yml'
22+
23+
- uses: actions/checkout@v2
24+
25+
- name: Import GPG key
26+
id: import_gpg
27+
uses: crazy-max/ghaction-import-gpg@v3
28+
with:
29+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
30+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
31+
32+
- uses: actions/setup-java@v1.4.3
33+
with:
34+
java-version: 11
35+
36+
- name: Cache local Maven repository
37+
uses: actions/cache@v2
38+
with:
39+
path: ~/.m2/repository
40+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
41+
restore-keys: |
42+
${{ runner.os }}-maven-
43+
44+
- name: Configure Git author
45+
run: |
46+
git config --local user.email "action@github.com"
47+
git config --local user.name "GitHub Action"
48+
49+
- name: Maven release ${{steps.metadata.outputs.current-version}}
50+
run: |
51+
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.GPG_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg
52+
git checkout -b release
53+
mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml
54+
git checkout ${{github.base_ref}}
55+
git rebase release
56+
mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease -s maven-settings.xml
57+
58+
- name: Push changes to ${{github.base_ref}}
59+
uses: ad-m/github-push-action@v0.6.0
60+
with:
61+
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
branch: ${{github.base_ref}}
63+
64+
- name: Push tags
65+
uses: ad-m/github-push-action@v0.6.0
66+
with:
67+
github_token: ${{ secrets.GITHUB_TOKEN }}
68+
tags: true

.gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
25+
# Eclipse
26+
.project
27+
.classpath
28+
.settings/
29+
bin/
30+
31+
# IntelliJ
32+
.idea
33+
*.ipr
34+
*.iml
35+
*.iws
36+
37+
# NetBeans
38+
nb-configuration.xml
39+
40+
# Visual Studio Code
41+
.vscode
42+
.factorypath
43+
44+
# OSX
45+
.DS_Store
46+
47+
# Vim
48+
*.swp
49+
*.swo
50+
51+
# patch
52+
*.orig
53+
*.rej
54+
55+
# Gradle
56+
.gradle/
57+
build/
58+
59+
# Maven
60+
target/
61+
pom.xml.tag
62+
pom.xml.releaseBackup
63+
pom.xml.versionsBackup
64+
release.properties

0 commit comments

Comments
 (0)