-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (43 loc) · 1.04 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
name: Check
on:
push:
branches:
- feature/*
paths-ignore:
- '**.md'
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
env:
CI: true
jobs:
check:
# Skip build if head commit contains 'skip ci'
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
name: Check code quality
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 21
distribution: zulu
- name: Gradle Check
uses: gradle/[email protected]
id: check
env:
CI: true
with:
gradle-version: current
arguments: runAffectedUnitTests -Paffected_module_detector.enable
- name: comment
uses: unsplash/comment-on-pr@master
if: failure()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: Build failed ${{ steps.check.outputs.build-scan-url }}