Skip to content

Add favicon, render Organization schema, fix missing OG metadata (#18) #52

Add favicon, render Organization schema, fix missing OG metadata (#18)

Add favicon, render Organization schema, fix missing OG metadata (#18) #52

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
smoke-tests:
name: Smoke Tests & Sanity Integration
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Start dev server
run: npm run dev &
env:
CI: true
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.SANITY_PROJECT_ID }}
NEXT_PUBLIC_SANITY_DATASET: ${{ vars.SANITY_DATASET || 'production' }}
- name: Wait for server to be ready
uses: iFaxity/wait-on-action@v1
with:
resource: http://localhost:3000
timeout: 30000
- name: Run smoke tests
run: npm run test:smoke
- name: Run Sanity integration tests
run: npm run test:sanity
- name: Upload test results
if: always()
run: echo "Tests completed"
build-validation:
name: Build Validation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build static site
run: npm run build
env:
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ secrets.SANITY_PROJECT_ID }}
NEXT_PUBLIC_SANITY_DATASET: ${{ vars.SANITY_DATASET || 'production' }}
- name: Validate build output
run: npm run test:build