Skip to content

Bump eslint-plugin-vue from 10.2.0 to 10.5.0 in /form-app #214

Bump eslint-plugin-vue from 10.2.0 to 10.5.0 in /form-app

Bump eslint-plugin-vue from 10.2.0 to 10.5.0 in /form-app #214

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Python dependencies
run: pip install pyyaml jsonschema
- name: Generate JSON from YAML definitions
run: |
mkdir -p form-app/src/assets
python script/run_all.py \
--schema schemas/formSchema.json \
--source sources/prescan_DPIA.yaml \
--begrippen-yaml sources/begrippenkader-dpia.yaml \
--output-json form-app/src/assets/PreScanDPIA.json \
--output-md docs/questions/questions_prescan_DPIA.md
python script/run_all.py \
--schema schemas/formSchema.json \
--source sources/DPIA.yaml \
--begrippen-yaml sources/begrippenkader-dpia.yaml \
--output-json form-app/src/assets/DPIA.json \
--output-md docs/questions/questions_DPIA.md
# Verify generated files
echo "Verifying generated JSON files..."
if [ ! -f form-app/src/assets/PreScanDPIA.json ] || [ ! -f form-app/src/assets/DPIA.json ]; then
echo "::error::One or more JSON files were not generated"
exit 1
fi
echo "JSON files successfully generated"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'form-app/package-lock.json'
- name: Install Node dependencies
run: cd form-app && npm ci
- name: Build the Vue application
run: |
cd form-app
npm run build
# Verify build output
echo "Verifying build output..."
if [ ! -f dist/index.html ]; then
echo "::error::index.html not found in dist directory"
exit 1
fi
echo "Listing dist directory content:"
ls -la dist/