Skip to content

Commit

Permalink
test: run webkit in github actions safari
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Aug 27, 2023
1 parent 0c4b940 commit f57c197
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 167 deletions.
104 changes: 0 additions & 104 deletions .github/workflows/browserstack.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/retry.yml

This file was deleted.

10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,17 @@ jobs:
browsers:
needs:
- build
runs-on: ubuntu-latest
runs-on: ${{ matrix.runs-on || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
browser:
- chrome:headless
- firefox:headless
- edge:headless
include:
- runs-on: macos-13
browser: safari
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -205,6 +208,11 @@ jobs:
cache: 'npm'
- run: npm clean-install
- run: npm install --global testcafe@2
- name: Add rows to the TCC.db
if: ${{ matrix.runs-on == 'macos-13' }}
run: |
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT OR REPLACE INTO access VALUES('kTCCServiceAppleEvents','com.devexpress.testcafe-browser-tools',0,2,3,1,X'fade0c0000000068000000010000000700000007000000080000001443fa4ca5141baeda21aeca1f50894673b440d4690000000800000014f8afcf6e69791b283e55bd0b03e39e422745770e0000000800000014bf4fc1aed64c871a49fc6bc9dd3878ce5d4d17c6',NULL,0,'com.apple.Safari',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e53616661726900000003',NULL,1687952810);"
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "INSERT OR REPLACE INTO access VALUES('kTCCServiceScreenCapture','com.devexpress.testcafe-browser-tools',0,2,3,1,X'fade0c0000000068000000010000000700000007000000080000001443fa4ca5141baeda21aeca1f50894673b440d4690000000800000014f8afcf6e69791b283e55bd0b03e39e422745770e0000000800000014bf4fc1aed64c871a49fc6bc9dd3878ce5d4d17c6',NULL,0,'UNUSED',NULL,0,1687952810);"
- name: Load cached dist
uses: actions/cache@v3
id: dist
Expand Down
9 changes: 0 additions & 9 deletions tap/.browsers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ SSL=""

if [[ -z $CI ]]; then
BROWSER="chrome:headless"
else
if [[ "$BROWSER" == "browserstack"* ]]; then
if [[ "$BROWSER" != "browserstack:android"* ]]; then
HOSTNAME="jose.panva.me"
SSL="key=./letsencrypt/config/live/jose.panva.me/privkey.pem;cert=./letsencrypt/config/live/jose.panva.me/cert.pem;rejectUnauthorized=true;"
fi
BROWSER=$(NODE_PATH=$(npm root -g) node ./tap/browserstack.cjs $BROWSER)
echo "Using $BROWSER"
fi
fi

testcafe "$BROWSER" --skip-js-errors --ssl "$SSL" --hostname "$HOSTNAME" tap/.browser.ts
37 changes: 0 additions & 37 deletions tap/browserstack.cjs

This file was deleted.

0 comments on commit f57c197

Please sign in to comment.