forked from waja/action-debian-package
Going wild
Some checks failed
Test Action / test (amd64, -v, dropbear, debian/2022.83-1_bpo11+1, https://salsa.debian.org/debian/dropbear.git) (pull_request) Failing after 23s
Test Action / test (amd64, -v, true, micro, debian/2.0.6-2_bpo10+1, https://salsa.debian.org/go-team/packages/micro.git) (pull_request) Failing after 16s
Test Action / test (arm, -v, false, at, debian/3.2.2-1, https://salsa.debian.org/debian/at.git) (pull_request) Failing after 21s
Test Action / test (arm, -v, iproute2, import/4.18.0-1ubuntu2_ubuntu18.04.1, https://git.launchpad.net/ubuntu/+source/iproute2) (pull_request) Failing after 23s
Test Action / test (arm64, -v, lolcat, debian/100.0.1-2, https://salsa.debian.org/ruby-team/lolcat.git) (pull_request) Failing after 20s
Test Action / test (arm64, -v, netcat-openbsd, import/1.206-1ubuntu1, https://git.launchpad.net/ubuntu/+source/netcat-openbsd) (pull_request) Failing after 21s
Test Action / test (arm64, true, -v, deber, v1.0.0, https://github.com/dawidd6/deber.git) (pull_request) Failing after 12s
Some checks failed
Test Action / test (amd64, -v, dropbear, debian/2022.83-1_bpo11+1, https://salsa.debian.org/debian/dropbear.git) (pull_request) Failing after 23s
Test Action / test (amd64, -v, true, micro, debian/2.0.6-2_bpo10+1, https://salsa.debian.org/go-team/packages/micro.git) (pull_request) Failing after 16s
Test Action / test (arm, -v, false, at, debian/3.2.2-1, https://salsa.debian.org/debian/at.git) (pull_request) Failing after 21s
Test Action / test (arm, -v, iproute2, import/4.18.0-1ubuntu2_ubuntu18.04.1, https://git.launchpad.net/ubuntu/+source/iproute2) (pull_request) Failing after 23s
Test Action / test (arm64, -v, lolcat, debian/100.0.1-2, https://salsa.debian.org/ruby-team/lolcat.git) (pull_request) Failing after 20s
Test Action / test (arm64, -v, netcat-openbsd, import/1.206-1ubuntu1, https://git.launchpad.net/ubuntu/+source/netcat-openbsd) (pull_request) Failing after 21s
Test Action / test (arm64, true, -v, deber, v1.0.0, https://github.com/dawidd6/deber.git) (pull_request) Failing after 12s
This commit is contained in:
parent
7d43afb7a9
commit
75594905c0
34
main.js
34
main.js
|
@ -68,8 +68,8 @@ async function main() {
|
|||
const match = changelog.match(regex)
|
||||
const { pkg, epoch, version, revision, packageDistribution } = match.groups
|
||||
const distribution = osDistribution ? osDistribution : packageDistribution
|
||||
const imageName = await getImageName(distribution)
|
||||
const imageTag = await getImageTag(imageName, distribution)
|
||||
const imageName = "ubuntu"
|
||||
const imageTag = "jammy"
|
||||
const container = pkg
|
||||
const image = imageName + ":" + imageTag
|
||||
|
||||
|
@ -99,6 +99,15 @@ async function main() {
|
|||
await exec.exec("ls", ["-la", sourceDirectory])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Create test files")
|
||||
await exec.exec("mkdir", ["-p", workspaceDirectory + "/foo"])
|
||||
await exec.exec("touch", [ workspaceDirectory + "/foo/bar.txt"])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check test files")
|
||||
await exec.exec("ls", ["-la", workspaceDirectory + "/foo"])
|
||||
core.endGroup()
|
||||
|
||||
if (cpuArchitecture != "amd64") {
|
||||
core.startGroup("Install QEMU")
|
||||
// Need newer QEMU to avoid errors
|
||||
|
@ -113,7 +122,7 @@ async function main() {
|
|||
"--platform", `linux/${cpuArchitecture}`,
|
||||
"--name", container,
|
||||
"--volume", workspaceDirectory + ":" + workspaceDirectory,
|
||||
"--workdir", sourceDirectory,
|
||||
"--workdir", workspaceDirectory,
|
||||
"--env", "DEBIAN_FRONTEND=noninteractive",
|
||||
"--env", "DPKG_COLORS=always",
|
||||
"--env", "FORCE_UNSAFE_CONFIGURE=1",
|
||||
|
@ -131,6 +140,22 @@ async function main() {
|
|||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check workspaceDirectory")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
container,
|
||||
"ls", "-la", workspaceDirectory
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check test files")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
container,
|
||||
"ls", "-la", workspaceDirectory + "/foo"
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check sourceDirectory")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
|
@ -145,7 +170,7 @@ async function main() {
|
|||
container
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
/*
|
||||
core.startGroup("Prepare environment")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
|
@ -284,6 +309,7 @@ async function main() {
|
|||
"-exec", "mv", "{}", artifactsDirectory, ";"
|
||||
])
|
||||
core.endGroup()
|
||||
*/
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue