-
Notifications
You must be signed in to change notification settings - Fork 7
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 #439 from FgForrest/dev
Regular performance tests
- Loading branch information
Showing
1,948 changed files
with
260,672 additions
and
25,781 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,32 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
latest: 'true' | ||
|
||
prerelease: true | ||
prerelease-identifier: 'alpha' | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
autolabeler: | ||
- label: 'bug' | ||
branch: | ||
- '/fix\/.+/' | ||
title: | ||
- '/fix/i' | ||
- label: 'enhancement' | ||
branch: | ||
- '/feature\/.+/' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
|
||
template: | | ||
## Changes | ||
$CHANGES |
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
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
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,4 +1,4 @@ | ||
# Main build pipeline, operates on `master` branch which is our integration branch | ||
# Main build pipeline, operates on `master` branch which is our integration branch and creates release | ||
|
||
name: CI Master branch | ||
|
||
|
@@ -8,6 +8,7 @@ on: | |
paths: # but react only to changes in code or pipeline definition | ||
- evita*/**/*.java | ||
- evita*/**/pom.xml | ||
- jacoco/**/pom.xml | ||
- evita*/**/dist/**.* | ||
- docker/**.* | ||
- .github/**.* | ||
|
@@ -18,10 +19,33 @@ concurrency: | |
|
||
jobs: | ||
build: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
# write permission is required for autolabeler | ||
# otherwise, read permission is required at least | ||
pull-requests: write | ||
outputs: | ||
release_id: ${{ steps.create_release.outputs.id }} | ||
released_version: ${{ steps.release_version.outputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 # checkout sources | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Resolve new release version | ||
id: release_version | ||
uses: lukashornych/[email protected] | ||
with: | ||
prefix: 'v' | ||
year_switch_mode: 'OnMinor' | ||
minor-identifier: '/feat(?:\\([^)]+\\))?:/' | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v3 # setup JDK 17 for building | ||
|
@@ -36,12 +60,65 @@ jobs: | |
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Build with Maven # run Maven without tests (tests must pass in dev branch) | ||
run: mvn -T 1C -B deploy -Dmaven.test.skip=true --file pom.xml | ||
run: | | ||
export CURRENT_VERSION="${{ steps.release_version.outputs.version }}" | ||
export NEW_VERSION="$( echo ${CURRENT_VERSION} | sed 's/^v//')" | ||
mvn versions:set -DnewVersion=$NEW_VERSION | ||
mvn -T 1C -B -P release-sign-artifacts -Dmaven.test.skip=true deploy --file pom.xml | ||
env: | ||
EVITA_BUILD_VERSION: ${{ steps.release_version.outputs.version }} | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
|
||
- name: Create distribution directory | ||
run: | | ||
mkdir -p ./dist | ||
cp LICENSE ./dist | ||
cp 'evita_server/target/evita-server.jar' ./dist | ||
cp 'evita_server/dist/run.sh' './dist' | ||
cp 'evita_server/dist/logback.xml' './dist' | ||
cp 'docker/evita-configuration.yaml' './dist' | ||
- name: Create .zip of dist | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'dist.zip' | ||
path: './dist' | ||
|
||
- name: Create .tar.gz of dist | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'tar' | ||
filename: 'dist.tar.gz' | ||
path: './dist' | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: release-drafter/release-drafter@v5 | ||
with: | ||
version: ${{ steps.release_version.outputs.version }} | ||
publish: true | ||
|
||
- name: Upload dist.zip to release | ||
uses: actions/upload-release-asset@v1 | ||
if: success() | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist.zip | ||
asset_name: Dist (zip) | ||
asset_content_type: application/zip | ||
|
||
- name: Upload dist.tar.gz to release | ||
uses: actions/upload-release-asset@v1 | ||
if: success() | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist.tar.gz | ||
asset_name: Dist (tar.gz) | ||
asset_content_type: application/gzip | ||
|
||
- name: Upload evitaDB server artifact # upload `evita-server.jar` for `docker-latest.yml` to deploy to DockerHub | ||
uses: actions/upload-artifact@v2 | ||
if: success() | ||
|
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.