mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-04-09 11:34:07 +00:00
Fix CI.
This commit is contained in:
parent
b528653dc5
commit
88f12d91f4
1 changed files with 11 additions and 10 deletions
21
.github/workflows/general.yml
vendored
21
.github/workflows/general.yml
vendored
|
@ -28,11 +28,6 @@ jobs:
|
|||
POSTGRES_DB: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
|
@ -41,12 +36,10 @@ jobs:
|
|||
toolchain: stable
|
||||
override: true
|
||||
- name: Migrate database
|
||||
env:
|
||||
SKIP_DOCKER: true
|
||||
run: |
|
||||
sudo apt-get install libpq-dev -y
|
||||
cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres
|
||||
./scripts/init_db.sh
|
||||
SKIP_DOCKER=true ./scripts/init_db.sh
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
|
@ -72,7 +65,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
image: postgres:12
|
||||
env:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
steps:
|
||||
|
@ -98,7 +95,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
image: postgres:12
|
||||
env:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
steps:
|
||||
|
|
Loading…
Reference in a new issue