diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab8a395..87f5f2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,7 @@ jobs: - name: Setup xvfb (Linux) if: runner.os == 'Linux' run: | + sudo apt-get update sudo apt-get install -y xvfb g++-multilib sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & - name: Prepare python3.10 diff --git a/build/webpack.tests.config.js b/build/webpack.tests.config.js index 5d85d8c..1e3c957 100644 --- a/build/webpack.tests.config.js +++ b/build/webpack.tests.config.js @@ -11,6 +11,7 @@ const entryFilePath = tempDir.path("testsInit.js"); const testsImports = testsDir .find({ matching: process.env.TEST ? `${process.env.TEST}.test.js` : "*.test.js" }) + .filter(test => (process.env.ALL || !test.includes('optional'))) .reduce((fileContent, path) => { const normalizedPath = path.replace(/\\/g, "/"); return `${fileContent}require("../tests/${normalizedPath}");\n`; diff --git a/tests/strategies/rutracker.test.js b/tests/strategies/rutracker.optional.test.js similarity index 100% rename from tests/strategies/rutracker.test.js rename to tests/strategies/rutracker.optional.test.js