fix(ci): fix linux build
This commit is contained in:
		
							
								
								
									
										1
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -33,6 +33,7 @@ jobs:
 | 
				
			|||||||
      - name: Setup xvfb (Linux)
 | 
					      - name: Setup xvfb (Linux)
 | 
				
			||||||
        if: runner.os == 'Linux'
 | 
					        if: runner.os == 'Linux'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 | 
					          sudo apt-get update
 | 
				
			||||||
          sudo apt-get install -y xvfb g++-multilib
 | 
					          sudo apt-get install -y xvfb g++-multilib
 | 
				
			||||||
          sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
 | 
					          sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 &
 | 
				
			||||||
      - name: Prepare python3.10
 | 
					      - name: Prepare python3.10
 | 
				
			||||||
 | 
				
			|||||||
@ -11,6 +11,7 @@ const entryFilePath = tempDir.path("testsInit.js");
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const testsImports = testsDir
 | 
					const testsImports = testsDir
 | 
				
			||||||
  .find({ matching: process.env.TEST ? `${process.env.TEST}.test.js` : "*.test.js" })
 | 
					  .find({ matching: process.env.TEST ? `${process.env.TEST}.test.js` : "*.test.js" })
 | 
				
			||||||
 | 
					  .filter(test => (process.env.ALL || !test.includes('optional')))
 | 
				
			||||||
  .reduce((fileContent, path) => {
 | 
					  .reduce((fileContent, path) => {
 | 
				
			||||||
    const normalizedPath = path.replace(/\\/g, "/");
 | 
					    const normalizedPath = path.replace(/\\/g, "/");
 | 
				
			||||||
    return `${fileContent}require("../tests/${normalizedPath}");\n`;
 | 
					    return `${fileContent}require("../tests/${normalizedPath}");\n`;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user