Skip to content

Add caching pages and tests #59

Add caching pages and tests

Add caching pages and tests #59

Workflow file for this run

name: Test Next.js v14
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install HarperDB
run: npm i -g [email protected]
- name: Start HarperDB
env:
TC_AGREEMENT: yes
HDB_ADMIN: hdb_admin
HDB_ADMIN_PASSWORD: password
ROOTPATH: /hdb
OPERATIONSAPI_NETWORK_PORT: 9925
HTTP_PORT: 9926
THREADS_COUNT: 1
LOGGING_STDSTREAMS: true
LOGGING_LEVEL: debug
AUTHENTICATION_AUTHORIZELOCAL: false
run: harperdb install
- name: Install Next.js v14 Fixture dependencies
working-directory: ./fixtures/next-14
run: |
npm install
npx playwright install chromium --with-deps
- name: Run Next.js v14 Fixture tests
working-directory: ./fixtures/next-14
run: npm run test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30