Skip to content

Commit 6d85395

Browse files
committed
test: remove maven cache to rule out corruption
1 parent 898e005 commit 6d85395

1 file changed

Lines changed: 1 addition & 32 deletions

File tree

.github/workflows/mvn.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,6 @@ jobs:
2424
with:
2525
distribution: 'temurin'
2626
java-version: ${{ matrix.java }}
27-
- uses: actions/cache@v5
28-
with:
29-
path: ~/.m2/repository
30-
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
31-
restore-keys: |
32-
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
3327
- run: java -version
3428
- run: mvn -version
35-
- name: Run Maven
36-
shell: bash
37-
id: run_maven
38-
run: |
39-
set +e
40-
mvn --errors --batch-mode clean install -Pqulice -Dhone.skip=true 2>&1 | tail -120 | tee mvn-tail.log
41-
EXIT_CODE=${PIPESTATUS[0]}
42-
exit $EXIT_CODE
43-
- name: Comment with failure log
44-
if: failure()
45-
uses: actions/github-script@v7
46-
with:
47-
script: |
48-
const fs = require('fs');
49-
let body = '';
50-
try { body = fs.readFileSync('mvn-tail.log', 'utf8'); } catch (e) { body = 'no log'; }
51-
const truncated = body.length > 60000 ? body.slice(-60000) : body;
52-
const issueNum = context.payload.pull_request ? context.payload.pull_request.number : null;
53-
if (issueNum) {
54-
await github.rest.issues.createComment({
55-
owner: context.repo.owner,
56-
repo: context.repo.repo,
57-
issue_number: issueNum,
58-
body: '<details><summary>Maven failure log (' + context.job + ')</summary>\n\n```\n' + truncated + '\n```\n</details>'
59-
});
60-
}
29+
- run: mvn --errors --batch-mode clean install -Pqulice -Dhone.skip=true

0 commit comments

Comments
 (0)