
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: run-on-linux.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">const { spawn, exec } = require( &#039;child_process&#039; );
const packageJson = require( &#039;./package.json&#039; );

function isDockerExist() {
	return new Promise( ( resolve ) =&gt; {
		exec( &#039;docker -v&#039;, ( error ) =&gt; {
			resolve( ! error );
		} );
	} );
}

async function run( tag ) {
	const playwrightVersion = packageJson.devDependencies[ &#039;@playwright/test&#039; ];
	const workingDir = process.cwd();

	const command = &#039;docker run&#039;;
	const options = [
		&#039;--rm&#039;,
		&#039;--network host&#039;,
		`--volume ${ workingDir }:/work`,
		&#039;--workdir /work/&#039;,
		&#039;--interactive&#039;,
		process.env.CI ? &#039;&#039; : &#039;--tty&#039;,
	];
	const image = `mcr.microsoft.com/playwright:v${ playwrightVersion.replace( &#039;^&#039;, &#039;&#039; ) }-jammy`;
	const commandToRun = `/bin/bash -c &quot;npm run test:playwright -- --grep=&quot;${ tag }&quot;&quot;`;

	spawn( `${ command } ${ options.join( &#039; &#039; ) } ${ image } ${ commandToRun }`, {
		stdio: &#039;inherit&#039;,
		stderr: &#039;inherit&#039;,
		shell: true,
	} );
}

( async () =&gt; {
	if ( ! await isDockerExist() ) {
		// eslint-disable-next-line no-console
		console.error( &#039;Docker is not installed, please install it first.&#039; );

		process.exit( 1 );
	}

	await run( process.argv.slice( 2 ) );
} )();
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//astyleofshade.com.au/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://astyleofshade.com.au/post-sitemap.xml</loc>
		<lastmod>2026-09-12T02:12:46+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://astyleofshade.com.au/page-sitemap.xml</loc>
		<lastmod>2026-09-11T01:03:07+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->