2021-05-03 18:59:23 +02:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-08-10 14:53:56 +02:00
|
|
|
- name: Install docker-compose
|
|
|
|
run: sudo apt-get install -y docker-compose
|
2024-02-17 20:40:25 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-05-03 18:59:23 +02:00
|
|
|
- name: Copy config
|
|
|
|
run: cp utils/ci/* .
|
|
|
|
- name: Build the Docker image
|
|
|
|
run: docker-compose build
|
|
|
|
- name: Start Docker
|
|
|
|
run: docker-compose up -d
|
|
|
|
- name: Run migrations
|
|
|
|
run: ./utils/run_migrations.sh
|
|
|
|
- name: Run tests
|
|
|
|
run: ./utils/tests_cov.sh
|
|
|
|
- name: Stop Docker
|
|
|
|
run: docker-compose down
|