mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-06-26 00:50:49 +00:00
Try fixing CI.
This commit is contained in:
parent
30e838f6c5
commit
5535044e8c
11
.github/workflows/general.yml
vendored
11
.github/workflows/general.yml
vendored
|
@ -21,9 +21,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
image: postgres:12
|
||||
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
|
||||
|
@ -33,9 +38,7 @@ jobs:
|
|||
override: true
|
||||
- name: Migrate database
|
||||
env:
|
||||
# Weird networking issue in GitHub actions... It fails with 'connection refused' if we use 'localhost'.
|
||||
POSTGRES_HOST: postgres
|
||||
SKIP_DOCKER: true
|
||||
SKIP_DOCKER: true
|
||||
run: |
|
||||
sudo apt-get install libpq-dev -y
|
||||
cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres
|
||||
|
|
Loading…
Reference in a new issue