Skip to content

New Design

New Design #4

Workflow file for this run

name: Verify PR build
on:
pull_request:
branches: [ 'main', 'master' ]
concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify LFS files
run: |
git lfs install
git lfs fsck --pointers HEAD
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifact
uses: 'actions/upload-artifact@v4'
with:
name: 'gh-pages-preview'
path: './spock-website/dist'
verify:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./spock-website
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true # Download LFS files for screenshots
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: spock-website/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run Playwright Tests
run: npx playwright test
- name: Upload Test Results (optional)
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: spock-website/playwright-report/