-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (47 loc) · 1.1 KB
/
check.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
name: Check
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'release/*'
- 'merge/*'
- 'adoption/*'
paths:
- '**/src/**'
- '**.gradle.kts'
- 'gradle.properties'
pull_request:
branches:
- 'main'
- 'release/*'
- 'merge/*'
- 'adoption/*'
paths:
- '**/src/**'
- '**.gradle.kts'
- 'gradle.properties'
jobs:
check:
strategy:
matrix:
config:
- {os: ubuntu-latest, preset: linuxX64}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- uses: gradle/wrapper-validation-action@v1
- if: matrix.config.preset == 'linuxX64'
run: chmod +x ${{ github.workspace }}/gradlew
- uses: gradle/gradle-build-action@v2
with:
arguments: check
- if: always()
uses: actions/upload-artifact@v3
with:
name: test-reports-${{ matrix.config.preset }}
path: ${{ github.workspace }}/*/build/reports/*