Skip to content

Commit 39c50e7

Browse files
committed
Use Github Actions to set up Continuous Integration(CI)
1 parent daa1663 commit 39c50e7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/wrapper-validation-action@v3
26+
27+
- name: Setup JDK 17
28+
uses: actions/setup-java@v1
29+
with:
30+
java-version: '17'
31+
java-package: jdk+fx
32+
33+
- name: Build and check with Gradle
34+
run: ./gradlew check

0 commit comments

Comments
 (0)