Skip to content

Backstop Sanity Tests #1

Backstop Sanity Tests

Backstop Sanity Tests #1

name: Backstop Sanity Tests
on:
pull_request:
branches: [master, develop]
workflow_dispatch:
workflow_call:
permissions:
contents: write
pull-requests: write
env:
NODE_VERSION: 20
jobs:
sanity:
name: 🤪 Sanity
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: ⬢ Setup Node & Cache
uses: actions/setup-node@v3
with:
cache: "npm"
cache-dependency-path: package-lock.json
- name: ↧ Install
run: npm ci
- name: 🧸 Test Puppeteer
run: |
npm run sanity-test
- name: 🎭 Test Playwright
run: |
npm run sanity-test-playwright