Skip to content

Commit ee3989f

Browse files
committed
TEST
Signed-off-by: marko-bekhta <[email protected]>
1 parent 2cef49a commit ee3989f

File tree

2 files changed

+3
-84
lines changed

2 files changed

+3
-84
lines changed

.github/workflows/ci-report.yml

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
- name: Determine the Branch Reference for which the original action was triggered
3030
id: determine_branch_ref
3131
run: |
32-
if [ -n "${{ github.event.workflow_run.pull_requests[0].base.ref }}" ]; then
33-
BRANCH_REF="${{ github.event.workflow_run.pull_requests[0].base.ref }}"
32+
echo "{{github.event.workflow_run.pull_requests}}"
33+
if [ -n "${{ github.event.workflow_run.pull_requests[0].number }}" ]; then
34+
BRANCH_REF="pull/${{ github.event.workflow_run.pull_requests[0].number }}/head"
3435
else
3536
BRANCH_REF="${{ github.event.workflow_run.head_branch }}"
3637
fi
@@ -46,40 +47,3 @@ jobs:
4647
with:
4748
java-version: 21
4849
distribution: temurin
49-
# https://github.com/actions/cache/blob/main/examples.md#java---maven
50-
- name: Cache local Maven repository
51-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # 4.2.3
52-
with:
53-
path: ~/.m2/repository
54-
# use a different key than workflows running untrusted code
55-
key: trusted-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
56-
restore-keys: |
57-
trusted-${{ runner.os }}-maven-
58-
- name: Set up Maven
59-
run: ./mvnw -v
60-
- name: Download GitHub Actions artifacts for the Develocity build scans
61-
id: downloadBuildScan
62-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # 4.3.0
63-
with:
64-
pattern: build-scan-data-*
65-
github-token: ${{ github.token }}
66-
repository: ${{ github.repository }}
67-
run-id: ${{ github.event.workflow_run.id }}
68-
path: /tmp/downloaded-build-scan-data/
69-
# Don't fail the build if there are no matching artifacts
70-
continue-on-error: true
71-
- name: Publish Develocity build scans for previous builds
72-
if: ${{ steps.downloadBuildScan.outcome != 'failure'}}
73-
run: |
74-
shopt -s nullglob # Don't run the loop below if there are no artifacts
75-
status=0
76-
mkdir -p ~/.m2/.develocity/
77-
for build_scan_data_directory in /tmp/downloaded-build-scan-data/*
78-
do
79-
rm -rf ~/.m2/.develocity/build-scan-data
80-
mv "$build_scan_data_directory" ~/.m2/.develocity/build-scan-data \
81-
&& ./mvnw $MAVEN_ARGS develocity:build-scan-publish-previous || status=1
82-
done
83-
exit $status
84-
env:
85-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY_PR }}

.github/workflows/ci.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -95,50 +95,5 @@ jobs:
9595
java-version: ${{ matrix.os.java.version }}
9696
distribution: temurin
9797
# https://github.com/actions/cache/blob/main/examples.md#java---maven
98-
- name: Cache local Maven repository
99-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # 4.2.3
100-
with:
101-
path: ~/.m2/repository
102-
# use a different key than workflows running in trusted mode
103-
key: ${{ github.event_name == 'push' && 'trusted' || 'untrusted' }}-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
104-
restore-keys: |
105-
${{ github.event_name == 'push' && 'trusted' || 'untrusted' }}-${{ runner.os }}-maven-
10698
- name: Set up Maven
10799
run: ./mvnw -v
108-
109-
- name: Build code and run tests and basic checks (Standalone)
110-
run: |
111-
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean install \
112-
-Pjqassistant -Pdist
113-
env:
114-
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}"
115-
DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
116-
# For jobs running on 'pull_request', upload build scan data.
117-
# The actual publishing must be done in a separate job (see ci-report.yml).
118-
# We don't write to the remote cache as that would be unsafe.
119-
- name: Upload GitHub Actions artifact for the Develocity build scan
120-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
121-
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
122-
with:
123-
name: build-scan-data-standalone-${{ matrix.os.name }}
124-
path: ~/.m2/.develocity/build-scan-data
125-
126-
- name: Run TCK tests in container mode
127-
run: |
128-
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean verify \
129-
-Pjqassistant -Pskip-checks \
130-
-am -pl :hibernate-validator-tck-runner \
131-
-Dincontainer -Dincontainer-prepared
132-
env:
133-
DEVELOCITY_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_KEY || '' }}"
134-
DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
135-
136-
- name: Upload GitHub Actions artifact for the Develocity build scan
137-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
138-
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
139-
with:
140-
name: build-scan-data-incontainer-${{ matrix.os.name }}
141-
path: ~/.m2/.develocity/build-scan-data
142-
143-
- name: Omit produced artifacts from build cache
144-
run: rm -r ~/.m2/repository/org/hibernate/validator

0 commit comments

Comments
 (0)