Skip to content

Fixes require.resolve with paths property (#56) #14

Fixes require.resolve with paths property (#56)

Fixes require.resolve with paths property (#56) #14

name: Test Polyfills Exhaustive
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: browserstack
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
browser:
- ie
- android
- chrome/1 - 50
- chrome/51 - 100
- chrome/>= 101
- edge
- firefox/1 - 50
- firefox/51 - 100
- firefox/>= 101
- ios
- safari
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: env
run: echo "commit-sha=$(echo ${GITHUB_SHA})" >> $GITHUB_ENV
- run: npm ci
- name: cache __dist
id: cache-dist
uses: actions/cache@v4
with:
path: polyfills/__dist
key: cache--dist--${{ env.commit-sha }}
- run: npm run build
if: steps.cache-dist.outputs.cache-hit != 'true'
- name: Test ${{ matrix.browser }}
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js
test-polyfill-combinations targeted director browser="${{ matrix.browser }}"
timeout-minutes: 30
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}