mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
update workflow
This commit is contained in:
parent
2e982e18ce
commit
60d5fe9277
20
.github/workflows/backend-tests.yml
vendored
20
.github/workflows/backend-tests.yml
vendored
@ -10,9 +10,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PRODUCTION: false
|
PRODUCTION: false
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
Database: [sqlite, postgres]
|
||||||
|
|
||||||
|
# Services
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
@ -23,6 +31,8 @@ jobs:
|
|||||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
|
# Steps
|
||||||
steps:
|
steps:
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
# check-out repo and set-up python
|
# check-out repo and set-up python
|
||||||
@ -63,14 +73,8 @@ jobs:
|
|||||||
# run test suite
|
# run test suite
|
||||||
#----------------------------------------------
|
#----------------------------------------------
|
||||||
- name: Run Test Suite
|
- name: Run Test Suite
|
||||||
run: |
|
|
||||||
make test-all
|
|
||||||
#----------------------------------------------
|
|
||||||
# run test suite
|
|
||||||
#----------------------------------------------
|
|
||||||
- name: Run Test Suite Postgres
|
|
||||||
env:
|
env:
|
||||||
DB_ENGINE: postgres
|
DB_ENGINE: ${{ matrix.Database }}
|
||||||
POSTGRES_SERVER: localhost
|
POSTGRES_SERVER: localhost
|
||||||
run: |
|
run: |
|
||||||
make test-all
|
make test-all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user