Skip to content

Issue 45 - run tests on github actions #21

Issue 45 - run tests on github actions

Issue 45 - run tests on github actions #21

Workflow file for this run

name: pipeline
on:
pull_request:
paths:
- 'backend/**'
- '.github/workflows/**'
branches: [main, issue-45]
types: [opened, synchronize]
jobs:
backend_deployment_pipeline:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build the stack
working-directory: ./backend
run: docker compose up -d
- name: lint
working-directory: ./backend
run: docker compose exec api npm run lint
- name: tests
working-directory: ./backend
run: docker compose run api npm run test