forked from Kage0x3B/KageCore
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.39 KB
/
Pull_Request.yml
File metadata and controls
47 lines (40 loc) · 1.39 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
name: Pull Request
on: [pull_request]
jobs:
Pull_Request:
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-branch-name@master
with:
regex: '([a-z])+\/([a-z])+' # Regex the branch should match. This example enforces grouping
allowed_prefixes: 'feature,bug,fix' # All branches should start with the given prefix
ignore: master,develop # Ignore exactly matching branch names from convention
min_length: 5 # Min length of the branch name
max_length: 100 # Max length of the branch name
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Make gradlew executeable
run: chmod +x gradlew
- name: Set up JDK 14
uses: actions/setup-java@v2
with:
java-version: '14'
distribution: 'adopt-hotspot'
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: build --scan
- name: Test
uses: gradle/gradle-build-action@v2
with:
arguments: test
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.2
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 0
min-coverage-changed-files: 60