Skip to content

fix typo ion path to python file #97

fix typo ion path to python file

fix typo ion path to python file #97

Workflow file for this run

name: Node.js CI
on: [push]
jobs:
unit-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.7.0'
- run: |
cd api
npm ci
npm run test
integration-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.7.0'
- run: |
cd api
npm ci
npm run test:integration
deploy:
name: Deploying to Google Cloud
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Authenticate App Engine
id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Generate app.yaml
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GCP_REGION: ${{ secrets.GCP_REGION }}
GCP_CONNECTOR_NAME: ${{ secrets.GCP_CONNECTOR_NAME }}
run: python scripts/generate_app_yaml.py
- name: Deploy to App Engine
id: deploy
uses: google-github-actions/deploy-appengine@v1
with:
deliverables: api/app.yaml
project_id: ${{ secrets.GCP_PROJECT_ID }}
build_env_vars: |-
DATABASE_HOST=${{ secrets.DATABASE_HOST }}
DATABASE_USER=${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}
NODE_ENV=${{ secrets.NODE_ENV }}
JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}
env_vars: |-
DATABASE_HOST=${{ secrets.DATABASE_HOST }}
DATABASE_USER=${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}
NODE_ENV=${{ secrets.NODE_ENV }}
JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}