-
-
Notifications
You must be signed in to change notification settings - Fork 112
39 lines (36 loc) · 1.04 KB
/
gradle-check-master.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
name: Quality checks
on:
push:
branches:
- master
- releases/*
pull_request:
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
name: Setup Gradle
id: setup-gradle
- name: Run gradle build
run: ./gradlew -PenvIsCi=true -Pheadless=true --scan check
id: gradle
- name: "Add Build Scan URL as PR comment"
uses: actions/github-script@v7
if: github.event_name == 'pull_request' && failure()
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `❌ ${{ github.workflow }} **failed**.
Please look a Gradle Scan page for details:
${{ steps.gradle.outputs.build-scan-url }}`
})