Skip to content

Commit

Permalink
[WIP] Build: Try adding back old iOS/Android to BS matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jul 8, 2024
1 parent bf1406e commit a9693cb
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 33 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/browsers-debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: browsers-debug
on:
# Or manually
workflow_dispatch:
# Or when developing this workflow
push:
paths:
- .github/workflows/browsers-debug.yaml
- build/browserstack-debug.json

jobs:
run:
name: BrowserStack
if: ${{ github.repository == 'qunitjs/qunit' }} # skip on forks, needs secret
runs-on: ubuntu-latest
env:
PUPPETEER_DOWNLOAD_PATH: "${{ github.workspace }}/.puppeteer_download"
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.puppeteer_download
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Prepare
run: |
npm ci
npm run build
- name: Tests
run: npm run browserstack
env:
BROWSERSTACK_JSON: build/browserstack-debug.json
BROWSERSTACK_USERNAME: "${{ secrets.BROWSERSTACK_USERNAME }}"
BROWSERSTACK_KEY: "${{ secrets.BROWSERSTACK_KEY }}"
# Set "project" metadata
TRAVIS_REPO_SLUG: "${{ github.repository }} ${{ github.event_name }}"
# Set "commit" metadata
TRAVIS_COMMIT: "full ${{ github.ref }} ${{ github.sha }}"
TUNNEL_ID: "${{ github.event_name }}-full-${{ github.sha }}"
28 changes: 26 additions & 2 deletions build/browserstack-debug.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,31 @@
"exit_with_fail": true,
"timeout": 600,
"browsers": [
"firefox_current",
"chrome_current"
{
"os": "android",
"os_version": "7.0",
"device": "Samsung Galaxy S8",
"real_mobile": true,
},
{
"os": "android",
"os_version": "5.0"
},
{
"os": "ios",
"os_version": "11.0"
},
{
"os": "ios",
"os_version": "10.3"
},
{
"os": "ios",
"os_version": "9.3"
},
{
"os": "ios",
"os_version": "8.3"
}
]
}
31 changes: 0 additions & 31 deletions build/browserstack-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,5 @@
"os": "ios",
"os_version": "12"
}
],
"@browsers_disabled": [
{
"@ref": [
"https://github.com/browserstack/browserstack-runner/issues/245",
"Android 4, Android 5, Android 6"
]
},
{
"@ref": [
"https://github.com/browserstack/browserstack-runner/issues/226",
"Android 7-10",
"iOS 13, 14"
]
},
{
"device": "Samsung Galaxy S7",
"real_mobile": true,
"os": "android",
"os_version": "6.0"
},
{
"device": null,
"os": "ios",
"os_version": "13"
},
{
"device": null,
"os": "ios",
"os_version": "14"
}
]
}

0 comments on commit a9693cb

Please sign in to comment.