-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 #749 from RakambdaOrg/develop
2.2.12
- Loading branch information
Showing
21 changed files
with
161 additions
and
155 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
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 |
---|---|---|
|
@@ -13,6 +13,16 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
dependency-submission: | ||
name: Dependencies submission | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/[email protected] | ||
continue-on-error: true | ||
|
||
build: | ||
name: Build project | ||
runs-on: ubuntu-latest | ||
|
@@ -27,12 +37,13 @@ jobs: | |
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
- name: Build project | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
assemble | ||
--scan | ||
run: | | ||
./gradlew \ | ||
assemble \ | ||
--scan | ||
- name: Upload miner jar file | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -67,26 +78,27 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Run tests | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:miner:test | ||
--scan | ||
run: | | ||
./gradlew \ | ||
:miner:test \ | ||
--scan | ||
- name: Generate JaCoCo report | ||
uses: gradle/gradle-build-action@v2 | ||
if: always() | ||
with: | ||
arguments: :miner:jacocoTestReport | ||
run: | | ||
./gradlew \ | ||
:miner:jacocoTestReport | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() | ||
with: | ||
report_paths: 'miner/build/test-results/test/*.xml' | ||
- name: Publish coverage on CodeCov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4.2.0 | ||
if: always() | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -130,26 +142,27 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Run tests | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:viewer:test | ||
--scan | ||
run: | | ||
./gradlew \ | ||
:viewer:test \ | ||
--scan | ||
- name: Generate JaCoCo report | ||
uses: gradle/gradle-build-action@v2 | ||
if: always() | ||
with: | ||
arguments: :viewer:jacocoTestReport | ||
run: | | ||
./gradlew \ | ||
:viewer:jacocoTestReport | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: always() | ||
with: | ||
report_paths: 'viewer/build/test-results/test/*.xml' | ||
- name: Publish coverage on CodeCov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4.2.0 | ||
if: always() | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
@@ -193,18 +206,19 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Calculate miner image name | ||
id: miner-image-name | ||
run: echo "IMAGE_NAME=${{ vars.DOCKER_IMAGE_MINER }}:${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" | ||
- name: Push branch/tag on Docker Hub | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:miner:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME }} | ||
run: | | ||
./gradlew \ | ||
:miner:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME }} | ||
publish-viewer: | ||
name: Publish Viewer on DockerHub | ||
|
@@ -222,15 +236,16 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Calculate viewer image name | ||
id: viewer-image-name | ||
run: echo "IMAGE_NAME=${{ vars.DOCKER_IMAGE_VIEWER }}:${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" | ||
- name: Push branch/tag on Docker Hub | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:viewer:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME }} | ||
run: | | ||
./gradlew \ | ||
:viewer:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME }} |
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 |
---|---|---|
|
@@ -16,29 +16,29 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ vars.JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Calculate miner image name | ||
id: miner-image-name | ||
run: | | ||
echo "IMAGE_NAME=${{ vars.DOCKER_IMAGE_MINER }}:${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" | ||
echo "IMAGE_NAME_LATEST=${{ vars.DOCKER_IMAGE_MINER }}:latest" >> "$GITHUB_OUTPUT" | ||
- name: Push branch/tag on Docker Hub | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:miner:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME }} | ||
run: | | ||
./gradlew \ | ||
:miner:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME }} | ||
- name: Push latest on Docker Hub | ||
if: success() && github.ref == 'refs/heads/main' | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:miner:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME_LATEST }} | ||
run: | | ||
./gradlew \ | ||
:miner:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.miner-image-name.outputs.IMAGE_NAME_LATEST }} | ||
publish-viewer: | ||
name: Publish Viewer on DockerHub | ||
|
@@ -52,26 +52,26 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: ${{ env.APP_JAVA_VERSION }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Calculate viewer image name | ||
id: viewer-image-name | ||
run: | | ||
echo "IMAGE_NAME=${{ vars.DOCKER_IMAGE_VIEWER }}:${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT" | ||
echo "IMAGE_NAME_LATEST=${{ vars.DOCKER_IMAGE_VIEWER }}:latest" >> "$GITHUB_OUTPUT" | ||
- name: Push branch/tag on Docker Hub | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:viewer:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME }} | ||
run: | | ||
./gradlew \ | ||
:viewer:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME }} | ||
- name: Push latest on Docker Hub | ||
if: success() && github.ref == 'refs/heads/main' | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: | | ||
:viewer:jib | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME_LATEST }} | ||
run: | | ||
./gradlew \ | ||
:viewer:jib \ | ||
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | ||
-Djib.to.auth.password=${{ secrets.DOCKER_TOKEN }} \ | ||
-Djib.to.image=${{ steps.viewer-image-name.outputs.IMAGE_NAME_LATEST }} |
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
Oops, something went wrong.