-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/1731-code-coverage-in-Codecov
- Loading branch information
Showing
754 changed files
with
59,518 additions
and
23,219 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
65 changes: 65 additions & 0 deletions
65
.github/workflows/finalized-tag-updater-github-release.yml
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,65 @@ | ||
name: Github Release for Finalized-Tag-Updater Besu Plugin | ||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
description: 'Release semantic version: e.g "1.0.0"' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. | ||
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Clean | ||
# ./gradlew clean is necessary because the build is cached | ||
# and cause issues with JReleaser | ||
run: ./gradlew clean | ||
|
||
- name: Build | ||
run: | | ||
./gradlew :finalized-tag-updater:shadowJar -Pversion=v${{inputs.version}} | ||
- name: Release to GitHub | ||
uses: jreleaser/release-action@v2 | ||
with: | ||
arguments: full-release --git-root-search --basedir=${{ github.workspace }}/finalized-tag-updater | ||
env: | ||
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN_RELEASE_ACCESS }} | ||
JRELEASER_TAG_NAME: finalized-tag-updater-v${{inputs.version}} | ||
JRELEASER_PROJECT_VERSION: '0.0.1' | ||
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JRELEASER_GITHUB_USERNAME: ${{ github.actor }} | ||
JRELEASER_GITHUB_EMAIL: ${{ github.actor }}@users.noreply.github.com | ||
|
||
# Persist logs | ||
- name: JReleaser release output | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jreleaser-release | ||
path: | | ||
build/jreleaser/trace.log | ||
build/jreleaser/output.properties |
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: traces-api-facade-testing | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
DOCKERHUB_USERNAME: | ||
required: true | ||
DOCKERHUB_TOKEN: | ||
required: true | ||
workflow_dispatch: | ||
inputs: | ||
coverage: | ||
description: To generate test report | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
name: Traces api facade tests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Run tests with coverage | ||
uses: nick-fields/retry@v2 | ||
if: ${{ inputs.coverage }} | ||
with: | ||
max_attempts: 2 | ||
retry_on: error | ||
timeout_minutes: 20 | ||
command: | | ||
./gradlew traces-api-facade:app:buildNeeded jacocoRootReport | ||
- name: Run tests without coverage | ||
uses: nick-fields/retry@v2 | ||
if: ${{ !inputs.coverage }} | ||
with: | ||
max_attempts: 2 | ||
retry_on: error | ||
timeout_minutes: 20 | ||
command: | | ||
./gradlew traces-api-facade:app:buildNeeded |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ sgr0 := $(shell tput sgr0) | |
|
||
.PHONY: dev | ||
dev: | ||
npm run dev | ||
pnpm run dev |
Oops, something went wrong.