Add data dictionary in Evolution-Generator #157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow to verify the code style of the commit, that it builds correctly | |
# and make sure unit tests run too with all supported node versions | |
name: CI-Generator | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
generate-and-build: | |
runs-on: ubuntu-24.04 # As of Nov 2024, ubuntu-latest is too old for peotry | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: copy env file | |
run: cp .env.example .env | |
- name: Use Node.js 22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x # Latest stable as of Nov 2024 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Run Poetry | |
working-directory: packages/evolution-generator | |
run: poetry install | |
- name: Generate survey | |
run: yarn generateSurvey:example | |
- name: Install | |
run: yarn | |
- name: Format python | |
run: yarn format:python | |
- name: Check git status after python format | |
run: | | |
if [[ -n "$(git status --porcelain)" ]]; then | |
echo "Code formatting issues found. Please run 'yarn format' locally and commit changes." | |
git status | |
git diff | |
exit 1 | |
fi | |
- name: Compile Evolution | |
run: yarn compile | |
- name: Compile Generated survey | |
run: yarn workspace demo_generator run compile:example |