-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
99 lines (98 loc) · 3.57 KB
/
action.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: 'test-patch'
author: 'Apache Software Foundation'
description: 'Apache Yetus precommit patch testing'
branding:
color: purple
icon: feather
inputs:
basedir:
description: 'Directory location of source'
required: true
default: "${GITHUB_WORKSPACE}"
blankseolignorefile:
descipription: 'regex list of files to ignore blanks EOL'
default: .yetus/blanks-eol.txt
blankstabsignorefile:
description: 'regex list of files to ignore tabs'
default: .yetus/blanks-tabs.txt
bufbasedir:
description: 'Location where to run buf'
default: .
buildtool:
description: 'Name of build tool plug-in to use'
default: "nobuild"
continuousimprovement:
description: 'Pass branches that would otherwise fail'
default: false
excludes:
description: 'Filename of files/directories to ignore'
default: '.yetus/excludes.txt'
githubtoken:
description: 'GitHub token to use'
required: true
default: ''
javahome:
description: 'Location of the JDK to use'
default: '/usr/lib/jvm/java-11-openjdk-amd64'
patchdir:
description: 'Directory location of logs, temp space, etc'
required: true
default: "/tmp/yetus"
plugins:
description: 'Fine grained control over plug-ins'
default: 'all,-asflicense,-author,-findbugs,-gitlab,
-jira,-shelldocs'
project:
description: 'Name of project to put on reports, default personality, etc'
default: unknown
reapermode:
description: 'How to handle stale surefire tests'
default: kill
reviveconfig:
description: 'Configuration file for revive'
default: .revive.toml
testsfilter:
description: 'Only warn on these test plug-ins'
default: ''
runs:
using: 'docker'
image: docker://ghcr.io/apache/yetus:main
args:
- test-patch
- --basedir=${{ inputs.basedir }}
- --blanks-eol-ignore-file=${{ inputs.blankseolignorefile }}
- --blanks-tabs-ignore-file=${{ inputs.blankstabsignorefile }}
- --brief-report-file=${{ inputs.patchdir }}/brief.txt
- --buf-basedir=${{ inputs.bufbasedir }}
- --build-tool=${{ inputs.buildtool }}
- --console-report-file=${{ inputs.patchdir }}/console.txt
- --continuous-improvement=${{ inputs.continuousimprovement }}
- --excludes=${{ inputs.excludes }}
- --github-token=${{ inputs.githubtoken }}
- --html-report-file=${{ inputs.patchdir }}/report.html
- --ignore-unknown-options=true
- --java-home=${{ inputs.javahome }}
- --junit-report-xml=${{ inputs.patchdir }}/junit-report.xml
- --patch-dir=${{ inputs.patchdir }}
- --plugins=${{ inputs.plugins }}
- --project=${{ inputs.project }}
- --pylint-requirements=true
- --reapermode=${{ inputs.reapermode }}
- --report-unknown-options=false
- --revive-config=${{ inputs.reviveconfig }}
- --tests-filter=${{ inputs.testsfilter }}