-
Notifications
You must be signed in to change notification settings - Fork 20
52 lines (45 loc) · 1.16 KB
/
main.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
name: Main
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 0' # Every Sunday
jobs:
main:
runs-on: ${{ matrix.image }}
timeout-minutes: 15
strategy:
matrix:
image: [macos-12, ubuntu-22.04, windows-2022]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: "Validate Gradle wrapper"
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Build
run: ./gradlew build
- name: 'Upload test results'
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}.test-results
path: build/reports/tests
if: ${{ always() }}
- name: 'Upload test logs'
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}.test-logs
path: build/idea-sandbox/system-test/log
if: ${{ always() }}