Skip to content

Merge pull request #4 from fix/upgrade-workflows #35

Merge pull request #4 from fix/upgrade-workflows

Merge pull request #4 from fix/upgrade-workflows #35

Workflow file for this run

name: Unit and Integration Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
integration_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create environment file
run: |
echo "POSTGRES_HOST=${{ env.POSTGRES_HOST }}" > .env
echo "POSTGRES_PORT=${{ env.POSTGRES_PORT }}" >> .env
echo "POSTGRES_DB=${{ env.POSTGRES_DB }}" >> .env
echo "POSTGRES_USER=${{ env.POSTGRES_USER }}" >> .env
echo "POSTGRES_PASSWORD=${{ env.POSTGRES_PASSWORD }}" >> .env
- name: Run integration tests
run: |
setsid ./ci/integration-test.sh
unit_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create environment file
run: |
echo "POSTGRES_HOST=${{ env.POSTGRES_HOST }}" > .env
echo "POSTGRES_PORT=${{ env.POSTGRES_PORT }}" >> .env
echo "POSTGRES_DB=${{ env.POSTGRES_DB }}" >> .env
echo "POSTGRES_USER=${{ env.POSTGRES_USER }}" >> .env
echo "POSTGRES_PASSWORD=${{ env.POSTGRES_PASSWORD }}" >> .env
- name: Run unit tests
run: |
setsid ./ci/unit-test.sh