Implement lintian support
This commit is contained in:
parent
3d1ba69630
commit
b42cf11a96
|
@ -19,6 +19,10 @@ inputs:
|
|||
os_distribution:
|
||||
description: OS distribution name, value from `debian/changelog` is used if not defined
|
||||
required: false
|
||||
lintian_opts:
|
||||
description: Command line parameters provided to 'lintian'
|
||||
required: false
|
||||
default: ""
|
||||
runs:
|
||||
using: node16
|
||||
main: main.js
|
||||
|
|
11
main.js
11
main.js
|
@ -38,6 +38,7 @@ async function main() {
|
|||
const sourceRelativeDirectory = core.getInput("source_directory") || "./"
|
||||
const artifactsRelativeDirectory = core.getInput("artifacts_directory") || "./"
|
||||
const osDistribution = core.getInput("os_distribution") || ""
|
||||
const lintianOpts = core.getInput("lintian_opts") || ""
|
||||
|
||||
const workspaceDirectory = process.cwd()
|
||||
const sourceDirectory = path.join(workspaceDirectory, sourceRelativeDirectory)
|
||||
|
@ -132,7 +133,7 @@ async function main() {
|
|||
await exec.exec("docker", [
|
||||
"exec",
|
||||
container,
|
||||
"apt-get", "install", "-yq", "-t", imageTag, "dpkg-dev", "debhelper", "devscripts"
|
||||
"apt-get", "install", "-yq", "-t", imageTag, "dpkg-dev", "debhelper", "devscripts", "lintian"
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
|
@ -165,6 +166,14 @@ async function main() {
|
|||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Container: Run static analysis")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
container,
|
||||
"find", buildDirectory, "-maxdepth", "1", "-name", `*.changes`, "-type", "f", "-print", "-exec", "lintian" `${lintianOpts}`
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Install built packages")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
|
|
Loading…
Reference in a new issue