Skip to content

feat: use env variables and secrets #151

feat: use env variables and secrets

feat: use env variables and secrets #151

name: Vitest
on: [push]
env:
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
DUCKDB_POOL_SIZE: ${{ variables.DUCKDB_POOL_SIZE }}

Check failure on line 7 in .github/workflows/test_client_unit.yaml

View workflow run for this annotation

GitHub Actions / Vitest

Invalid workflow file

The workflow is not valid. .github/workflows/test_client_unit.yaml (Line: 7, Col: 21): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.DUCKDB_POOL_SIZE
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout api service
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and deploy backend
working-directory: api
run: |
python -m ensurepip --default-pip
pip install -r requirements.txt
uvicorn app:app --port 9090 & bash -c 'while ! curl -s http://localhost:9090 > /dev/null; do sleep 1; done'
- name: Checkout client service
uses: actions/checkout@v2
- name: Install dependencies
working-directory: client
run: npm ci
- name: Run tests
working-directory: client
run: npm test