-
Notifications
You must be signed in to change notification settings - Fork 52
43 lines (39 loc) · 991 Bytes
/
merge-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
name: Merge checks
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
name: Build project
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
strategy:
matrix:
java-version: [ 17 ]
steps:
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
- name: Show java
run: |
echo $JAVA_HOME
echo $PATH
java -version
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Files
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Gradle tasks
run: ./gradlew build