Skip to content

Commit d834e10

Browse files
committed
Feedback
1 parent ce1a779 commit d834e10

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
lines changed

Diff for: .github/workflows/build-pull-request.yml

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
with:
2727
cache-read-only: true
2828

29+
test-native:
30+
uses: ./.github/workflows/reusable-native-tests.yml
31+
with:
32+
only-test-native-label: ${{ github.event.label.name == 'test native' }}
33+
2934
muzzle:
3035
uses: ./.github/workflows/reusable-muzzle.yml
3136
with:

Diff for: .github/workflows/native-tests-daily.yml

+1-20
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,14 @@ on:
55
# daily at 4:00 UTC
66
- cron: "0 4 * * *"
77
workflow_dispatch:
8-
pull_request:
9-
types: [ labeled ]
108

119
jobs:
1210
graalvm-native-tests:
13-
if: ${{ github.event.label.name == 'native' || github.event.label.name == 'spring boot starter' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
17-
- uses: graalvm/setup-graalvm@d72e3dbf5f44eb0b78c4f8ec61a262d8bf9b94af # v1.1.7.1
18-
with:
19-
version: "latest"
20-
java-version: "17"
21-
components: "native-image"
22-
- name: Running test
23-
run: |
24-
echo "GRAALVM_HOME: $GRAALVM_HOME"
25-
echo "JAVA_HOME: $JAVA_HOME"
26-
java --version
27-
gu --version
28-
native-image --version
29-
./gradlew nativeTest
11+
uses: ./.github/workflows/reusable-native-tests
3012

3113
workflow-notification:
3214
needs:
3315
- graalvm-native-tests
34-
if: github.event_name == 'schedule'
3516
uses: ./.github/workflows/reusable-workflow-notification.yml
3617
with:
3718
success: ${{ needs.build.result == 'success' }}

Diff for: .github/workflows/reusable-native-tests.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Reusable - Native tests
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
graalvm-native-tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
11+
- uses: graalvm/setup-graalvm@d72e3dbf5f44eb0b78c4f8ec61a262d8bf9b94af # v1.1.7.1
12+
with:
13+
version: "latest"
14+
java-version: "17"
15+
components: "native-image"
16+
- name: Running test
17+
run: |
18+
echo "GRAALVM_HOME: $GRAALVM_HOME"
19+
echo "JAVA_HOME: $JAVA_HOME"
20+
java --version
21+
gu --version
22+
native-image --version
23+
./gradlew nativeTest

0 commit comments

Comments
 (0)