Skip to content

Commit

Permalink
Update update-polyfill-targets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion committed Apr 14, 2020
1 parent fe1fe9a commit 3f7bda9
Showing 1 changed file with 231 additions and 9 deletions.
240 changes: 231 additions & 9 deletions .github/workflows/update-polyfill-targets.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Update polyfill targets
on:
schedule:
- cron: "20 1 * * *"
- cron: "40 15 * * *"
jobs:
build:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control || true
- name: Run tests on android without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=android
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests with all polyfills
run: node ./test/polyfills/remotetest.js all || true
- name: Run tests on android all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=android
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which browsers require the polyfill and which do not
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
Expand All @@ -32,10 +32,232 @@ jobs:
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name=`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`;
branch_name="android--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update targets for $i";
git commit -m "update android targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
chrome:
runs-on: ubuntu-latest
needs: [android]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on chrome without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=chrome
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests on chrome all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=chrome
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="chrome--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update chrome targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
edge:
runs-on: ubuntu-latest
needs: [chrome]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on edge without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=edge
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests on edge all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=edge
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="edge--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update edge targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
firefox:
runs-on: ubuntu-latest
needs: [edge]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on firefox without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=firefox
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests on firefox all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=firefox
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="firefox--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update firefox targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
ie:
runs-on: ubuntu-latest
needs: [firefox]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on ie without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=ie
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests on ie all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=ie
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="ie--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update ie targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
ios:
runs-on: ubuntu-latest
needs: [ie]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on ios without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=ios
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Run tests on ios all polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js all browser=ios
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="ios--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update ios targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
safari:
runs-on: ubuntu-latest
needs: [ios]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm ci
- name: Run tests on safari without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=safari
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
- run: all ci
- name: Run tests all safari without polyfills
run: node ./test/polyfills/server.js & node ./test/polyfills/remotetest.js control browser=safari
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
- name: Figure out which versions require the polyfill and which versions do not
run: node ./test/polyfills/compat.js
- name: Update the browser targeting configuration for all polyfills
run: node ./test/polyfills/update-polyfill-targeting.js
- run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
for i in `git diff --name-only`;
do
git checkout master;
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
branch_name="safari--`echo $i | sed 's/polyfills\///' | sed 's/\/config\.toml//'`"";
git checkout -b $branch_name;
git add $i;
git commit -m "update safari targeting for $i";
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${REPOSITORY}.git" $branch_name;
bin/hub pull-request --no-edit;
done
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

0 comments on commit 3f7bda9

Please sign in to comment.