Skip to content

Add AJV validation for theme.json exports (#14) #20

Add AJV validation for theme.json exports (#14)

Add AJV validation for theme.json exports (#14) #20

Workflow file for this run

name: Test Suite
on:
push:
branches: [ develop, main ]
pull_request:
branches: [ develop, main ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test:coverage
- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2
with:
name: 'Coverage Report'
# Set reportOnFailure to true in vitest config to generate reports even if tests fail
json-summary-path: './coverage/coverage-summary.json'
json-final-path: './coverage/coverage-final.json'
- name: Upload coverage to artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
retention-days: 30