-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 990 Bytes
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Java CI with Gradle
on:
push:
branches: [main]
paths:
- "river-monitoring-service/**"
- ".github/workflows/gradle.yml"
pull_request:
branches: [main]
paths:
- "river-monitoring-service/**"
- ".github/workflows/gradle.yml"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
- name: Grant execute permission for gradlew
run: chmod +x ./river-monitoring-service/Server/gradlew
if: runner.os == 'Linux'
- name: Build with Gradle on Linux
run: ./river-monitoring-service/Server/gradlew
if: runner.os == 'Linux'
- name: Build with Gradle on Windows
run: .\river-monitoring-service\Server\gradlew.bat
if: runner.os == 'Windows'