Skip to content

Feature/sequelize

Feature/sequelize #2

name: Automated Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and run Docker containers
run: docker compose -f docker-compose.test.yml up -d
- name: Wait for services to start
run: docker compose -f docker-compose.test.yml ps
- name: Install dependencies
run: cd ./auth/src && npm install
- name: Run tests
run: cd ./auth/src && npm run test
- name: Stop and remove Docker containers
run: docker-compose -f docker-compose.test.yml down