Use windows CI runner to run integration tests
Problem to solve
At GitLab, using Windows for development is strictly prohibited. The extension is heavily working with the host machine file system. But the extension is rarely (if ever) tested on non-POSIX system before the release.
In some cases, this development process results in bugs (e.g. #284 (closed)) that could be caught by running the integration tests on Windows.
Proposal
Dog feed our shared Windows runners.
Further details
We would introduce another CI task similar to the test-integration
but run by a windows CI runner.
test-integration:
stage: test
variables:
DISPLAY: ':99.0'
script:
- apt-get update
- apt-get install -y xvfb libxtst6 libnss3 libgtk-3-0 libxss1 libasound2 libsecret-1-0 git
- npm ci
- echo $DISPLAY
- /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm run test-integration
Links / references
Edited by Tomas Vik (OOO back on 2024-09-23)