-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 1.51 KB
/
gradle_app_pull_request.yml
File metadata and controls
60 lines (58 loc) · 1.51 KB
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
52
53
54
55
56
57
58
59
60
#
# File: ./.github/workflows/pull_requests.yml
#
name: Pull Request
on:
workflow_call:
jobs:
commitlint:
#
# ensures commit messages follow conventional commits
#
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm install --save-dev @commitlint/{config-conventional@v18.6.0,cli}
- run: npx commitlint --from=${{ github.event.pull_request.base.sha }}
lint:
#
# runs java/kotlin lint
# https://github.com/github/super-linter
#
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_INCLUDE: .*src/.*
build:
#
# ensures build & tests pass
#
# gradle build task is included in the build task unless is explicitly excluded in you build.gradle
#
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v1
with:
arguments: build