Profile:DOM #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Profile:DOM' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8 * * *' | |
jobs: | |
doms: | |
name: 'Update Profiled Doms' | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Install pcap | |
run: sudo apt-get install -y libpcap-dev | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
token: ${{ secrets.PAT }} | |
repository: ulixee/browser-profile-data | |
path: browser-profile-data | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
submodules: 'true' | |
path: unblocked | |
- uses: actions/checkout@v3 | |
with: | |
ref: main | |
repository: ulixee/shared | |
path: shared | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: unblocked/yarn.lock | |
- name: Install ulixee/shared | |
run: yarn build | |
working-directory: ./shared | |
- name: Install unblocked | |
run: yarn build | |
working-directory: ./unblocked | |
- name: 'Collect new Browserstack Profiles' | |
run: yarn workspace @ulixee/unblocked-browser-profiler profile:dom-browserstack | |
working-directory: ./unblocked | |
env: | |
BROWSERSTACK_USER: ${{ secrets.BROWSERSTACK_USER }} | |
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
- name: 'Collect Local Doms' | |
run: yarn workspace @ulixee/unblocked-browser-profiler profile:dom-local | |
working-directory: ./unblocked | |
env: | |
NODE_ENV: development | |
RUN_DOCKERS: true | |
RUN_LOCAL: false | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: ${{ always() }} | |
with: | |
branch: main | |
repository: ./browser-profile-data | |
commit_message: 'chore(profiled-doms): automatic updates' |