Use GitHub actions

This commit is contained in:
rubenwardy 2021-05-03 17:12:25 +01:00
parent a33a4bd894
commit 077898350b
1 changed files with 29 additions and 0 deletions

29
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy config
run: cp utils/gitlabci/* .
- name: Build the Docker image
run: docker-compose build
test:
runs-on: ubuntu-latest
steps:
- 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