Use GitHub actions
This commit is contained in:
parent
a33a4bd894
commit
077898350b
|
@ -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
|
Loading…
Reference in New Issue