31 lines
811 B
YAML
31 lines
811 B
YAML
name: OSX Safari
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: macos-15
|
|
if: ${{ !contains(github.event.head_commit.message, 'docs:') }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo safaridriver --enable
|
|
npm ci
|
|
- name: Install local HTTP server
|
|
run: npm install serve -g
|
|
- name: Start local HTTP server
|
|
run: (serve test/data/html/ -l 3001&)
|
|
- name: Run test
|
|
run: bin/sitespeed.js -b safari http://127.0.0.1:3001/
|
|
- name: Run Safari test with config
|
|
run: node bin/sitespeed.js -b safari --config test/exampleConfig.json http://127.0.0.1:3001/
|