Issue 45 - run tests on github actions #21
This file contains 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: 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 | |