From 24facc133f75ad5f4d3ff69153bd9c5fdc541f44 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 15 Mar 2021 23:50:04 -0700 Subject: [PATCH] ci: add test for vimeo embed autoplay --- .github/workflows/vimeo-autoplay.yaml | 35 +++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/vimeo-autoplay.yaml diff --git a/.github/workflows/vimeo-autoplay.yaml b/.github/workflows/vimeo-autoplay.yaml new file mode 100644 index 0000000..deb1b4c --- /dev/null +++ b/.github/workflows/vimeo-autoplay.yaml @@ -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 + diff --git a/README.md b/README.md index e792b16..1110373 100644 --- a/README.md +++ b/README.md @@ -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.