Skip to content

Commit fbf914e

Browse files
authored
Merge pull request #118 from valfirst/improve-ci
Improve CI
2 parents ca022cd + f05c5ee commit fbf914e

File tree

2 files changed

+20
-27
lines changed

2 files changed

+20
-27
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: CI
22

33
on:
44
pull_request:
@@ -12,10 +12,25 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
15+
16+
- uses: actions/checkout@v3
17+
1618
- name: Set up JDK
17-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v3
1820
with:
21+
distribution: 'temurin'
1922
java-version: 8
20-
- name: "Gradle Build"
21-
run: ./gradlew clean build
23+
cache: 'gradle'
24+
25+
- name: Gradle Build
26+
run: ./gradlew build
27+
28+
- name: Run Demo
29+
if: github.event_name == 'pull_request'
30+
run: ./run.sh
31+
32+
- uses: actions/upload-artifact@v3
33+
if: github.event_name == 'pull_request'
34+
with:
35+
name: custom-report.html
36+
path: custom-report.html

.github/workflows/run.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)