forked from CharlesSkelton/studio
-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (51 loc) · 1.48 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
timeout-minutes: 2
- name: Integration tests
run: ./intTests-Xvfb.sh
timeout-minutes: 5
- name: Log files
run: find .
if: always()
- name: Upload Failed test screenshots
uses: actions/[email protected]
if: ${{ failure() }}
with:
name: Failed tests
path: ./failed-gui-tests/
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: JUnit Tests
path: build/test-results/*/*.xml
reporter: java-junit
fail-on-error: true
- name: Upload repots in case of failure
uses: actions/[email protected]
if: ${{ failure() }}
with:
name: Failed Reports
path: ./build/reports/tests/