Skip to content

Commit df42a09

Browse files
authored
Merge branch 'develop' into copilot/add-cache-parameter-ignoring
2 parents a3cc9ff + 87979ed commit df42a09

File tree

293 files changed

+10581
-1408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+10581
-1408
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
outputs:
2828
has_pr: ${{ steps.check.outputs.has_pr }}
2929
steps:
30-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@v6
3131
- name: Check if PR exists for this branch
3232
id: check
3333
env:
@@ -42,13 +42,13 @@ jobs:
4242
runs-on: self-hosted
4343
steps:
4444
- name: Checkout project
45-
uses: actions/checkout@v5
45+
uses: actions/checkout@v6
4646
with:
4747
fetch-depth: 0
4848
- name: Setup JDK
4949
uses: actions/setup-java@v5
5050
with:
51-
java-version: 17
51+
java-version: 25
5252
distribution: 'corretto'
5353
cache: gradle
5454

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Build bootJar on PR comment
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
actions: read
12+
13+
jobs:
14+
build-jar:
15+
# Только если комментарий к PR и в нём есть /buildJar
16+
if: >
17+
github.event.issue.pull_request != '' &&
18+
contains(github.event.comment.body, '/buildJar')
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Get PR info
23+
id: pr
24+
uses: actions/github-script@v8
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
script: |
28+
const prNumber = context.issue.number;
29+
const pr = await github.rest.pulls.get({
30+
owner: context.repo.owner,
31+
repo: context.repo.repo,
32+
pull_number: prNumber,
33+
});
34+
35+
core.info(`Base: ${pr.data.base.repo.full_name}@${pr.data.base.ref}`);
36+
core.info(`Head: ${pr.data.head.repo.full_name}@${pr.data.head.ref}`);
37+
38+
core.setOutput('head_ref', pr.data.head.ref);
39+
core.setOutput('head_repo', pr.data.head.repo.full_name);
40+
41+
- name: Checkout PR head with full history
42+
uses: actions/checkout@v6
43+
with:
44+
repository: ${{ steps.pr.outputs.head_repo }}
45+
ref: ${{ steps.pr.outputs.head_ref }}
46+
fetch-depth: 0
47+
fetch-tags: true
48+
49+
- name: Set up JDK with Gradle cache
50+
uses: actions/setup-java@v5
51+
with:
52+
distribution: 'corretto'
53+
java-version: 25
54+
cache: 'gradle'
55+
56+
- name: Make Gradle wrapper executable (if needed)
57+
run: chmod +x ./gradlew
58+
59+
- name: Build bootJar
60+
run: ./gradlew bootJar
61+
62+
- name: List built JARs
63+
id: list_jars
64+
run: |
65+
if ! ls build/libs/*.jar >/dev/null 2>&1; then
66+
echo "No JAR found in build/libs"
67+
exit 1
68+
fi
69+
70+
echo "Найдены JAR-файлы:"
71+
ls -1 build/libs/*.jar
72+
73+
# Собираем список файлов в формате markdown-списка
74+
{
75+
for path in build/libs/*.jar; do
76+
echo "- \`$(basename "$path")\`"
77+
done
78+
} > jar_list.txt
79+
80+
echo 'list<<EOF' >> "$GITHUB_OUTPUT"
81+
cat jar_list.txt >> "$GITHUB_OUTPUT"
82+
echo 'EOF' >> "$GITHUB_OUTPUT"
83+
84+
- name: Upload JAR artifact
85+
id: upload_jar
86+
uses: actions/upload-artifact@v5
87+
with:
88+
# имя артефакта; можешь поменять на что-то своё
89+
name: bootJar-${{ github.run_id }}
90+
path: build/libs/*.jar
91+
# retention-days: 7 # при желании
92+
93+
- name: Comment on PR with JAR link
94+
uses: peter-evans/create-or-update-comment@v5
95+
with:
96+
token: ${{ secrets.GITHUB_TOKEN }}
97+
issue-number: ${{ github.event.issue.number }}
98+
body: |
99+
✅ Собраны JAR-файлы для этого PR по команде `/buildJar`.
100+
101+
**Артефакт:** [${{ steps.upload_jar.outputs.artifact-id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload_jar.outputs.artifact-id }})
102+
103+
**Файлы внутри:**
104+
${{ steps.list_jars.outputs.list }}

.github/workflows/check-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: Checkout source
34-
uses: actions/checkout@v5
34+
uses: actions/checkout@v6
3535
with:
3636
fetch-depth: 0
3737
- name: Set up JDK

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
has_pr: ${{ steps.check.outputs.has_pr }}
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- name: Check if PR exists for this branch
2626
id: check
2727
env:
@@ -38,16 +38,16 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242
with:
4343
# We must fetch at least the immediate parents so that if this is
4444
# a pull request then we can checkout the head.
4545
fetch-depth: 0
4646

47-
- name: Set up JDK 17
47+
- name: Set up JDK 25
4848
uses: actions/setup-java@v5
4949
with:
50-
java-version: 17
50+
java-version: 25
5151
distribution: 'corretto'
5252
cache: gradle
5353

.github/workflows/codesee-arch-diagram.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
outputs:
1818
has_pr: ${{ steps.check.outputs.has_pr }}
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
- name: Check if PR exists for this branch
2222
id: check
2323
env:

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
build-deploy:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323
- name: Setup JDK
2424
uses: actions/setup-java@v5
2525
with:
26-
java-version: 17
26+
java-version: 25
2727
distribution: 'corretto'
2828
cache: gradle
2929

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
has_pr: ${{ steps.check.outputs.has_pr }}
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222
- name: Check if PR exists for this branch
2323
id: check
2424
env:
@@ -36,7 +36,7 @@ jobs:
3636
java_version: ['17', '21', '25']
3737
os: [ubuntu-latest, windows-latest, macOS-latest]
3838
steps:
39-
- uses: actions/checkout@v5
39+
- uses: actions/checkout@v6
4040
with:
4141
fetch-depth: 0
4242
- name: Set up JDK ${{ matrix.java_version }}

.github/workflows/javadoc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
has_pr: ${{ steps.check.outputs.has_pr }}
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222
- name: Check if PR exists for this branch
2323
id: check
2424
env:
@@ -32,13 +32,13 @@ jobs:
3232
if: needs.gatekeeper.result == 'success' && needs.check-pr-exists.outputs.has_pr != 'true'
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@v6
3636
with:
3737
fetch-depth: 0
3838
- name: Set up JDK
3939
uses: actions/setup-java@v5
4040
with:
41-
java-version: 17
41+
java-version: 25
4242
distribution: 'corretto'
4343
cache: gradle
4444
- name: Check javadoc build

.github/workflows/pre-qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
has_pr: ${{ steps.check.outputs.has_pr }}
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222
- name: Check if PR exists for this branch
2323
id: check
2424
env:

.github/workflows/publish-to-maven-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
publish:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 0
1818
- name: Set up JDK
1919
uses: actions/setup-java@v5
2020
with:
21-
java-version: 17
21+
java-version: 25
2222
distribution: 'corretto'
2323
cache: gradle
2424
- name: Deploy to Central Portal

0 commit comments

Comments
 (0)