Skip to content

Commit 360f6d0

Browse files
committed
fix
1 parent ac33113 commit 360f6d0

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,36 @@ jobs:
1616
build:
1717
name: Build
1818
runs-on: ubuntu-latest
19+
env:
20+
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info"
1921
outputs:
2022
version: ${{ steps.properties.outputs.version }}
2123
changelog: ${{ steps.properties.outputs.changelog }}
2224
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
2325
steps:
26+
- name: Dump GitHub context
27+
env:
28+
GITHUB_CONTEXT: ${{ toJSON(github) }}
29+
run: echo "$GITHUB_CONTEXT"
30+
- name: Dump runner context
31+
env:
32+
RUNNER_CONTEXT: ${{ toJSON(runner) }}
33+
run: echo "$RUNNER_CONTEXT"
2434

2535
- name: Configure Git
2636
run: |
2737
git config --global init.defaultBranch main
38+
git --version
39+
echo "Git configuration:"
40+
git config --list
2841
2942
- name: Checkout Repository
3043
uses: actions/checkout@v3
3144

3245
- name: Fetch Sources
3346
uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
3449

3550
- name: Gradle Wrapper Validation
3651
uses: gradle/actions/wrapper-validation@v3
@@ -42,11 +57,18 @@ jobs:
4257
with:
4358
distribution: zulu
4459
java-version: 17
60+
- name: Print Java version
61+
run: |
62+
java -version
63+
echo "JAVA_HOME=$JAVA_HOME"
4564
4665
- name: Setup Gradle
4766
uses: gradle/actions/setup-gradle@v4
4867
with:
4968
gradle-home-cache-cleanup: true
69+
- name: Print Gradle version
70+
working-directory: intellij-aicoder
71+
run: ../gradlew --version
5072

5173
- name: Make Gradle wrapper executable
5274
run: chmod +x ./gradlew
@@ -56,41 +78,56 @@ jobs:
5678
id: properties
5779
shell: bash
5880
run: |
81+
echo "Starting properties export..."
5982
PROPERTIES="$(../gradlew properties --console=plain -q)"
6083
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
6184
CHANGELOG="$(../gradlew getChangelog --unreleased --no-header --console=plain -q)"
85+
echo "Detected version: $VERSION"
6286
6387
echo "version=$VERSION" >> $GITHUB_OUTPUT
6488
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
6589
6690
echo "changelog<<EOF" >> $GITHUB_OUTPUT
6791
echo "$CHANGELOG" >> $GITHUB_OUTPUT
6892
echo "EOF" >> $GITHUB_OUTPUT
93+
echo "Properties export completed"
6994
7095
- name: Build plugin
7196
working-directory: intellij-aicoder
72-
run: ../gradlew buildPlugin
97+
run: |
98+
echo "Starting plugin build..."
99+
../gradlew buildPlugin --info
100+
echo "Plugin build completed"
73101
74102
- name: Prepare Plugin Artifact
75103
working-directory: intellij-aicoder
76104
id: artifact
77105
shell: bash
78106
run: |
107+
echo "Preparing plugin artifact..."
79108
cd ${{ github.workspace }}/intellij-aicoder/build/distributions
80-
FILENAME=`ls *.zip`
109+
FILENAME=`ls *.zip`
110+
echo "Found artifact: $FILENAME"
81111
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
112+
echo "Artifact preparation completed"
82113
83114
- name: Upload artifact
84115
uses: actions/upload-artifact@v4
85116
with:
86117
working-directory: intellij-aicoder
87118
name: ${{ steps.artifact.outputs.filename }}
88119
path: intellij-aicoder/build/distributions/*
120+
- name: List uploaded artifacts
121+
run: |
122+
echo "Uploaded artifacts in distributions directory:"
123+
ls -la intellij-aicoder/build/distributions/
89124
90125
test:
91126
name: Test
92127
needs: [ build ]
93128
runs-on: ubuntu-latest
129+
env:
130+
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info"
94131
steps:
95132
- name: Fetch Sources
96133
uses: actions/checkout@v4
@@ -106,14 +143,22 @@ jobs:
106143

107144
- name: Run Tests
108145
working-directory: intellij-aicoder
109-
run: ../gradlew check
146+
run: |
147+
echo "Starting test execution..."
148+
../gradlew check --info
149+
echo "Test execution completed"
110150
111151
- name: Collect Tests Result
112152
if: ${{ failure() }}
113153
uses: actions/upload-artifact@v4
114154
with:
115155
name: tests-result
116156
path: intellij-aicoder/build/reports/tests
157+
- name: Print test summary
158+
if: always()
159+
run: |
160+
echo "Test results summary:"
161+
[ -f intellij-aicoder/build/reports/tests/test/index.html ] && cat intellij-aicoder/build/reports/tests/test/index.html | grep -A 5 "<div class=\"summary\">"
117162
118163
- name: Upload Code Coverage Report
119164
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)