This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
Openapi2 #200
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
name: NodeJS with Webpack | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
- '*.*' | |
workflow_dispatch: | |
env: | |
DB_PASSWORD: gh-actions | |
CONFIG_FILE_PATH: ../../.github/workflows/ci.config.ini | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
database: | |
image: mariadb | |
env: | |
MARIADB_ROOT_PASSWORD: ${{ env.DB_PASSWORD }} | |
MARIADB_DATABASE: helios | |
ports: | |
- 3306:3306 | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Start API server | |
run: | | |
cd monorepo/api | |
python -m pip install -r requirements.txt | |
python -m flask --version | |
echo $PWD | |
which python | |
python -c "import main" | |
python -m flask --app main run | |
- name: Make sure package can be built | |
run: | | |
cd monorepo/app | |
npm ci | |
sh build.sh | |
- name: Run javascript unit tests | |
run: | | |
cd monorepo/app | |
npm run test | |
- name: Run python unit tests | |
run: | | |
cd monorepo/api | |
python -m pytest | |
- name: Make sure code conforms to prettier standards | |
run: | | |
cd monorepo/app | |
npm run prettier-test |