Skip to content

feat(@dpc-sdp/ripple-tide-publication): add count and index to page l… #2073

feat(@dpc-sdp/ripple-tide-publication): add count and index to page l…

feat(@dpc-sdp/ripple-tide-publication): add count and index to page l… #2073

Workflow file for this run

name: Nuxt
on:
push:
paths:
- '.github/workflows/nuxt.yml'
- 'examples/nuxt-app/**'
- 'packages/**'
- 'pnpm-lock.yaml'
- '!packages/ripple-storybook/**'
jobs:
TestNuxt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9.0.6
run_install: false
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- name: Build Example Nuxt app
run: pnpm -F nuxt-app build
# CLI tool is needed for mocks in perf test
- name: Build CLI tool
run: pnpm -F nuxt-ripple-cli build
- run: npm install ./packages/nuxt-ripple-cli --global
# Run lighthouse test against nuxt-app example
# TODO Turn lighthouse back on after unlighthouse is patched
# - name: Run lighthouse baseline test on nuxt-app
# run: pnpm -F nuxt-app lighthouse:ci
# run Cypress tests in example nuxt-app, record to Cypress cloud
Integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9.0.6
- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- name: Cypress Integration (e2e) tests
uses: cypress-io/github-action@v6
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
TZ: 'Australia/Melbourne'
NUXT_PUBLIC_TIDE_BASE_URL: 'https://test.base.url/'
NUXT_PUBLIC_TIDE_SITE: 'TEST_SITE'
NUXT_PUBLIC_API_URL: 'http://localhost:3001'
NUXT_PUBLIC_TIDE_APP_SEARCH_ENGINE_NAME: 'TEST_ENGINE'
API_PORT: '3001'
LOG_LEVEL: 'debug'
# DEBUG: '@cypress/github-action'
with:
record: true
working-directory: examples/nuxt-app
install: false
build: pnpm build
start: pnpm start
wait-on: 'http://localhost:3000/assets/fonts/VIC-Regular.woff2'