Skip to content

fix: Fixed job to install hugo #7

fix: Fixed job to install hugo

fix: Fixed job to install hugo #7

Workflow file for this run

name: Testing for visual regression on old theme
# Run the workflow when code is pushed or when a pull request is created
on:
push:
branches:
- '**'
pull_request:
branches:
- main
jobs:
playwright:
name: Run Playwright
runs-on: ubuntu-latest
steps:
# Checkout the repository so the workflow has access to the code
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: cd tests && npm ci
- name: Setup Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
with:
hugo-version: "0.134.2"
extended: true
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: make tests
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: tests/playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test-results
path: tests/test-results/
retention-days: 30