Skip to content

Commit c45a7af

Browse files
committed
update workflow
1 parent 1766fa8 commit c45a7af

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
name: Java CI
1+
name: Java CI with Gradle
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
48

59
jobs:
610
build:
@@ -9,9 +13,11 @@ jobs:
913

1014
steps:
1115
- uses: actions/checkout@v4
12-
- uses: actions/setup-java@v4
16+
- name: Set up JDK
17+
uses: actions/setup-java@v4
1318
with:
1419
distribution: 'temurin'
1520
java-version: 22
1621
cache: 'gradle'
17-
- run: ./gradlew compiler:test examples:test
22+
- name: Build with Gradle
23+
run: ./gradlew compiler:test examples:test

0 commit comments

Comments
 (0)