-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
51 lines (47 loc) · 1.37 KB
/
build.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
name: "Gradle build"
permissions: {}
on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
name: "Gradle build"
runs-on: ubuntu-latest
env:
GRADLE_MICROG_VERSION_WITHOUT_GIT: 1
steps:
- name: "Checkout sources"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Setup Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: "Gradle Wrapper validation"
uses: gradle/actions/wrapper-validation@v3
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Setup matchers"
run: |
# Setting up matchers...
matchers_dir='${{ github.workspace }}/.github/matchers'
matcher_list()
{
echo 'gradle-build-matcher.json'
echo 'gradle-build-kotlin-error-matcher.json'
}
matcher_list | while IFS='' read -r NAME; do
if test -f "${matchers_dir:?}/${NAME:?}"; then
echo "::add-matcher::${matchers_dir:?}/${NAME:?}"
echo "Matcher configured: ${NAME:?}"
fi
done
- name: "Inspect Gradle tasks"
run: "./gradlew tasks"
- name: "Execute Gradle assemble"
run: "./gradlew assemble"
- name: "Execute Gradle check"
run: "./gradlew check"