build(workflows): update CI configuration and remove test file
Some checks failed
Lint Pull Request / Lint Pr Title (pull_request) Failing after 4s

This commit is contained in:
Jan K9f 2025-04-09 18:07:13 +02:00
parent 7ded9bab13
commit 72b5dd18f3
Signed by: jank
GPG key ID: B9F475106B20F144
4 changed files with 32 additions and 24 deletions

30
invoke-binary.js Normal file
View file

@ -0,0 +1,30 @@
const childProcess = require('child_process')
const path = require('path')
function runGo() {
const goProcess = childProcess.spawnSync(
'go',
['run', '.'],
{
cwd: __dirname,
stdio: 'inherit',
shell: true,
},
)
if (goProcess.error) {
console.error('Failed to execute `go run .`:', goProcess.error)
process.exit(1)
}
if (goProcess.status !== 0) {
console.error(
'`go run .` exited with code',
goProcess.status,
goProcess.stderr ? goProcess.stderr.toString() : '',
)
process.exit(goProcess.status)
}
}
runGo()