Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: remove macOS microphone TCC workaround (#40896)

Yury Semikhatsky329f8af2d304
diff --git a/.github/actions/enable-microphone-access/action.yml b/.github/actions/enable-microphone-access/action.yml
deleted file mode 100644
index 76ca24eebf..0000000000
--- a/.github/actions/enable-microphone-access/action.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: Enable Microphone Access (macOS)
-description: 'Allow microphone access to all apps on macOS'
-
-runs:
- using: composite
- steps:
- # https://github.com/actions/runner-images/issues/9330
- - name: Allow microphone access to all apps
- shell: bash
- run: |
- if [[ "$(uname)" != "Darwin" ]]; then
- echo "Not macOS, exiting"
- exit 0
- fi
- echo "Allowing microphone access to all apps"
- version=$(sw_vers -productVersion | cut -d. -f1)
- if [[ "$version" == "14" || "$version" == "15" ]]; then
- 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);"
- elif [[ "$version" == "12" || "$version" == "13" ]]; then
- sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR REPLACE INTO access VALUES('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159);"
- else
- echo "Skipping unsupported macOS version $version"
- exit 0
- fi
- echo "Successfully allowed microphone access"
diff --git a/.github/actions/run-test/action.yml b/.github/actions/run-test/action.yml
index 1798e13fe2..48c60261c1 100644
--- a/.github/actions/run-test/action.yml
+++ b/.github/actions/run-test/action.yml
@@ -39,7 +39,6 @@ runs:
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- - uses: ./.github/actions/enable-microphone-access
- run: |
echo "::group::npm ci"
npm ci