From 2af4f67d418e30bbf461e44c286c598d3ce5249a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 10 Jul 2024 16:01:04 +0100 Subject: [PATCH] Workaround macOS permission issues in Github Actions CI (#1771) --- .github/workflows/build_and_test.yaml | 6 ++++++ playwright.config.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 7700af8..1100264 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -128,6 +128,12 @@ jobs: # We need sudo on Linux as it is installed in /opt/ RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }} + - name: Workaround macOS GHA permission issues + if: matrix.os == 'macos-latest' + run: | + sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);" + sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/opt/off/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);" + - name: Run tests uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a timeout-minutes: 5 diff --git a/playwright.config.ts b/playwright.config.ts index 013e9ff..9da8b7e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -29,5 +29,5 @@ export default defineConfig({ reporter: [["html", { outputFolder: "playwright/html-report" }]], snapshotDir: "playwright/snapshots", snapshotPathTemplate: "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}", - timeout: 10 * 1000, + timeout: 30 * 1000, });