Skip to content

Commit

Permalink
ci: add test for vimeo embed autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Mar 16, 2021
1 parent 383e0ce commit 24facc1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/vimeo-autoplay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Autoplay Behavior: Vimeo Embed"

on:
push:
pull_request:
schedule:
- cron: '12 1 * * *'

jobs:
autoscroll_test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: install requirements
run: yarn install

- name: get browsertrix image
run: docker pull webrecorder/browsertrix-crawler

- name: run crawl
run: docker run -v $PWD/crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://oembed.link/https://vimeo.com/1084537 --limit 1 --generateCDX --collection test

- name: check mp4 capture
run: grep '"video/mp4"' ./crawls/collections/test/indexes/index.cdxj

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

[![Autoplay Behavior: Youtube](https://github.com/webrecorder/browsertrix-behaviors/actions/workflows/youtube-autoplay.yaml/badge.svg)](https://github.com/webrecorder/browsertrix-behaviors/actions/workflows/youtube-autoplay.yaml)

[![Autoplay Behavior: Vimeo](https://github.com/webrecorder/browsertrix-behaviors/actions/workflows/vimeo-autoplay.yaml/badge.svg)](https://github.com/webrecorder/browsertrix-behaviors/actions/workflows/vimeo-autoplay.yaml)


A set of behaviors injected into the browser to perform certain operations on a page, such as scrolling, fetching additional URLs, or performing
customized actions for social-media sites.

Expand Down

0 comments on commit 24facc1

Please sign in to comment.