Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand All @@ -11,17 +12,23 @@ on:
- README.md
- gradle.properties

permissions:
id-token: write
contents: read
actions: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v5

- name: Set up JDK 21
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: '21'

- name: Grant execute permission for gradlew
Expand All @@ -35,6 +42,21 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build with Gradle
id: build
run: |
./gradlew build
run: ./gradlew build --stacktrace

- name: Upload built jars
uses: actions/upload-artifact@v4
with:
name: build-libs
path: build/libs/*.jar
retention-days: 1

upload:
needs: build
if: github.ref_name == 'develop' || startsWith(github.ref_name, 'feature/')
uses: reportportal/.github/.github/workflows/upload-plugin-artifact.yaml@main
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix the reusable workflow path—it contains a duplicate .github directory.

The workflow path has reportportal/.github/.github/workflows/... which appears to be a typo. Standard GitHub repository structure has workflows at .github/workflows/, not .github/.github/workflows/. This path error will cause the job to fail at runtime.

Apply this diff to correct the path:

-    uses: reportportal/.github/.github/workflows/upload-plugin-artifact.yaml@main
+    uses: reportportal/.github/workflows/upload-plugin-artifact.yaml@main
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: reportportal/.github/.github/workflows/upload-plugin-artifact.yaml@main
uses: reportportal/.github/workflows/upload-plugin-artifact.yaml@main
🤖 Prompt for AI Agents
.github/workflows/build.yml around line 62: the reusable workflow path contains
a duplicated “.github” segment; update the uses line to point to
reportportal/.github/workflows/upload-plugin-artifact.yaml@main (remove the
extra “.github”) and verify the target repository and path exist (and update any
other occurrences of the duplicated path in this file).

with:
plugin_name: ${{ github.event.repository.name }}
branch_name: ${{ github.ref_name }}
run_number: "${{ github.run_number }}"
secrets: inherit
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ dependencies {
implementation 'com.epam.reportportal:plugin-api'
annotationProcessor 'com.epam.reportportal:plugin-api'
} else {
implementation 'com.github.reportportal:commons-dao:9b8b695'
implementation 'com.github.reportportal:plugin-api:9bd040f'
annotationProcessor 'com.github.reportportal:plugin-api:9bd040f'
implementation 'com.github.reportportal:commons-dao:develop-SNAPSHOT'
implementation 'com.github.reportportal:plugin-api:develop-SNAPSHOT'
annotationProcessor 'com.github.reportportal:plugin-api:develop-SNAPSHOT'
}

compileOnly "org.projectlombok:lombok:${lombokVersion}"
Expand Down