diff --git a/.github/workflows/mac-m1.yml b/.github/workflows/mac-m1.yml new file mode 100644 index 0000000000..30f8ced1b1 --- /dev/null +++ b/.github/workflows/mac-m1.yml @@ -0,0 +1,50 @@ +name: OSX Safari Mac M1 +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: macos-14 + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: Install browsertime + run: npm ci + - name: Install dependencies + run: | + sudo safaridriver --enable + brew update + brew install ffmpeg + 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 + system_profiler SPDisplaysDataType |grep Resolution + ffmpeg -version + - name: List all simulators + run: xcrun xctrace list devices + #- name: Start local HTTP server + # run: (npm run start-server&) + - name: Test Safari without video + run: ./bin/browsertime.js -b safari -n 1 https://www.sitespeed.io/ + #- 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 \ No newline at end of file