Update Hugo to v0.139.5 #212
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: Check for regressions | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [ labeled, synchronize, reopened ] | |
branches: [ master ] | |
jobs: | |
regression-test: | |
runs-on: ubuntu-latest | |
if: > | |
github.event_name == 'workflow_dispatch' || | |
contains( github.event.pull_request.labels.*.name, 'test-for-regression') | |
steps: | |
- name: Download backstopjs docker in the background | |
run: | | |
docker pull -q backstopjs/backstopjs & | |
- name: Checkout repo at master | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
ref: master | |
- name: Checkout resources cache | |
uses: actions/checkout@v2 | |
with: | |
ref: resources | |
path: resources | |
- name: Install dependencies | |
run: | | |
./Taskfile.sh install | |
- name: Wait for background jobs | |
run: | | |
wait | |
- name: Generate Screenshots for reference | |
run: | | |
./Taskfile.sh regression reference | |
- name: Checkout repo at ${{ github.base_ref }} | |
uses: actions/checkout@v2 | |
with: | |
clean: false | |
submodules: true | |
- name: Install dependencies | |
run: | | |
./Taskfile.sh install | |
- name: Run regression test | |
run: | | |
./Taskfile.sh regression test | |
- name: Upload regression test results as an artifact | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: regression-test-results | |
path: backstop_data |