Skip to content

Commit 14efc49

Browse files
authored
Update gradle.yml
1 parent 5cf9a0b commit 14efc49

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/gradle.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# This workflow will build a Java project with Gradle
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
33

4-
name: Java CI with Gradle
4+
name: Gradle build
55

66
on:
77
push:
88
branches: [ master ]
99
pull_request:
1010
branches: [ master ]
1111

12+
# .github/workflows/gradle-build-pr.yml
1213
jobs:
13-
build:
14-
15-
runs-on: ubuntu-latest
16-
14+
gradle:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
runs-on: ${{ matrix.os }}
1719
steps:
1820
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
21+
- uses: actions/setup-java@v1
2122
with:
22-
java-version: 1.8
23+
java-version: 11
2324
- name: Grant execute permission for gradlew
2425
run: chmod +x gradlew
25-
- name: Build with Gradle
26-
run: ./gradlew build
26+
- uses: eskatos/gradle-command-action@v1
27+
with:
28+
arguments: build

0 commit comments

Comments
 (0)