Repository navigation
Bump browser versions in Docker (#2569) #1373
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OSX Safari Mac M1 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-14 | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: '24.x' | |
| cache: 'npm' | |
| - name: Use Pyhton | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install browsertime | |
| run: npm ci | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade --user pip | |
| python -m pip install --upgrade --user setuptools | |
| python -m pip install --user pyssim OpenCV-Python Numpy | |
| python -m pip --version | |
| python -m pip show Pillow | |
| python -m pip show pyssim | |
| #- name: Check resolution | |
| # run: system_profiler SPDisplaysDataType |grep Resolution | |
| - name: Enable Safaridriver | |
| run: sudo safaridriver --enable | |
| - name: Start local HTTP server | |
| run: (npm run start-server&) | |
| - name: Safari environment diagnostics | |
| run: | | |
| sw_vers | |
| echo "---" | |
| /usr/bin/safaridriver --version | |
| echo "---" | |
| mdls -name kMDItemVersion /Applications/Safari.app || true | |
| echo "---" | |
| pgrep -lf safaridriver || echo "no safaridriver process" | |
| - name: Test Safari without video | |
| run: ./bin/browsertime.js -b safari -n 1 http://127.0.0.1:3000/simple/ | |
| #- name: Test Safari with video and Visual Metrics | |
| # run: ./bin/browsertime.js -b safari -n 1 --viewPort 800x600 --video --visualMetrics https://www.sitespeed.io/ | |
| #- name: Test Safari iOS simulator | |
| # run: | | |
| # IPHONE14=$(xcrun xctrace list devices 2>&1 | grep -m 1 "iPhone 14 Simulator" | awk -F'[()]' '{print $4}') | |
| # xcrun simctl boot $IPHONE14 | |
| # echo "Booted $IPHONE14" | |
| # ./bin/browsertime.js -b safari -n 1 --safari.useSimulator --video --visualMetrics --safari.deviceUDID $IPHONE14 https://www.sitespeed.io/ | |
| #- name: Test Safari with video and Visual Metrics for multi pages | |
| # run: ./bin/browsertime.js -b safari -n 1 --viewPort 800x600 --video --visualMetrics test/data/navigationscript/multiMac.cjs |