docs: link to canonical Solar Stack map in sun repo #90
This file contains hidden or 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: 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 |