From 2f39a1993b487a47efa8d66835f710c40e2a0ffd Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Thu, 25 May 2023 13:28:54 +0200 Subject: [PATCH] Add a test for scripting on Windows (#3858) * Add a test for scripting on Windows --- .github/workflows/windows.yml | 5 ++++- test/prepostscripts/multiWindows.cjs | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test/prepostscripts/multiWindows.cjs diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b640e45d8..2c76fe1db 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -26,4 +26,7 @@ jobs: - name: Run Edge test run: node bin/sitespeed.js -b edge https://www.sitespeed.io/ shell: cmd - + - name: Run Edge test with scripting + run: node bin/sitespeed.js -b edge --multi test/prepostscripts/multiWindows.cjs -n 1 + shell: cmd + \ No newline at end of file diff --git a/test/prepostscripts/multiWindows.cjs b/test/prepostscripts/multiWindows.cjs new file mode 100644 index 000000000..6f29b14c5 --- /dev/null +++ b/test/prepostscripts/multiWindows.cjs @@ -0,0 +1,3 @@ +module.exports = async function (context, commands) { + return commands.measure.start('https://www.sitespeed.io/'); +};