Skip to content

Use test env file for running tests in docker #10

Use test env file for running tests in docker

Use test env file for running tests in docker #10

Workflow file for this run

name: Continuous Integration
on: [push]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build test Docker image
run: docker build --target test --tag backend:test ./backend
- name: Run tests
run: docker run --env-file backend/.env.test backend:test