Skip to content

Add iama ravi2

Add iama ravi2 #60

Workflow file for this run

name: PR Preview
on:
pull_request:
types: [opened, synchronize, reopened, closed]
concurrency: preview-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
if: github.event.action != 'closed'
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Python dependencies
if: github.event.action != 'closed'
run: pip install pyyaml jsonschema
- name: Generate JSON from YAML definitions
if: github.event.action != 'closed'
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
python script/run_all.py \
--schema schemas/formSchema.json \
--source sources/IAMA.yaml \
--begrippen-yaml sources/begrippenkader-iama.yaml \
--output-json form-app/src/assets/IAMA.json \
--output-md docs/questions/questions_IAMA.md
- name: Set up Node.js
if: github.event.action != 'closed'
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'form-app/package-lock.json'
- name: Install Node dependencies
if: github.event.action != 'closed'
run: cd form-app && npm ci
- name: Build the Vue application
if: github.event.action != 'closed'
run: cd form-app && npm run build
- name: Deploy PR preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: form-app/dist/