Skip to content

docs: link to canonical Solar Stack map in sun repo #92

docs: link to canonical Solar Stack map in sun repo

docs: link to canonical Solar Stack map in sun repo #92

Workflow file for this run

name: Unit and Integration Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create environment file
run: |
cat << 'ENVFILE' > .env
LISTEN_ADDR=0.0.0.0
LISTEN_PORT=8000
APP_VERSION=0.4.0
APP_TITLE=Mercury
APP_DESCRIPTION=Mercury API
API_VERSION=v1
POSTGRES_HOST=mercury_db
POSTGRES_PORT=5432
POSTGRES_DB=mercury
POSTGRES_USER=mercury
POSTGRES_PASSWORD=mercury
REDIS_HOST=mercury_cache
JWT_SECRET_KEY=test-secret-key
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
ENVFILE
- name: Run unit tests
run: setsid ./ci/unit-test.sh
- name: Run integration tests
run: setsid ./ci/integration-test.sh