Skip to content

Commit 62b3809

Browse files
committed
Set up CI
1 parent 2a1668d commit 62b3809

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Java CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
platform: [ubuntu-latest, macos-latest, windows-latest]
10+
runs-on: ${{ matrix.platform }}
11+
12+
steps:
13+
- name: Set up repository
14+
uses: actions/checkout@master
15+
16+
- name: Set up repository
17+
uses: actions/checkout@master
18+
with:
19+
ref: master
20+
21+
- name: Merge to master
22+
run: git checkout --progress --force ${{ github.sha }}
23+
24+
- name: Validate Gradle Wrapper
25+
uses: gradle/actions/wrapper-validation@v3
26+
27+
- name: Setup JDK 17
28+
uses: actions/setup-java@v4
29+
with:
30+
distribution: 'zulu'
31+
java-version: '17'
32+
java-package: jdk+fx
33+
34+
- name: Build and check with Gradle
35+
run: ./gradlew check
36+
37+
- name: Install dos2unix on Linux
38+
if: runner.os == 'Linux'
39+
run: sudo apt-get update && sudo apt-get install -y dos2unix
40+
41+
- name: Install dos2unix on macOS
42+
if: runner.os == 'macOS'
43+
run: brew install dos2unix

0 commit comments

Comments
 (0)