From cdf074bf1bfc435d34b31efb7a870427b2c0bd42 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Sat, 19 Aug 2023 00:47:53 -0700 Subject: [PATCH] ci: Fix Chrome failures on Mac VMs (#5509) --- .github/workflows/build-and-test.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index e4422f7a57..f478c2efe8 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -125,6 +125,14 @@ jobs: # Install a launcher that can execute a shell script to launch this npm install karma-script-launcher --save-dev + # When "Chrome for Testing" is installed on Mac, it gets invoked instead + # of simply "Chrome". This other copy of Chrome, however, doesn't seem + # to have basic codecs like AAC and H264 available, causing many of our + # test scenarios to fail. Deleting "Chrome for Testing" fixes this. + - name: 'Delete "Chrome for Testing" on Mac' + if: matrix.os == 'macos-latest' && matrix.browser == 'Chrome' + run: sudo rm -rf /Applications/Google\ Chrome\ for\ Testing.app + # Some CI images (self-hosted or otherwise) don't have the minimum Java # version necessary for the compiler (Java 11). - uses: actions/setup-java@v3