mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 14:06:37 +00:00
Check prepared data is up-to-date.
This commit is contained in:
parent
48c9a5b39c
commit
5414cd0212
1 changed files with 8 additions and 3 deletions
11
.github/workflows/general.yml
vendored
11
.github/workflows/general.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
env:
|
env:
|
||||||
SQLX_VERSION: 0.5.5
|
SQLX_VERSION: 0.5.7
|
||||||
SQLX_FEATURES: postgres
|
SQLX_FEATURES: postgres
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -58,6 +58,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/sqlx
|
~/.cargo/bin/sqlx
|
||||||
|
~/.cargo/bin/cargo-sqlx
|
||||||
key: ${{ runner.os }}-sqlx-${{ env.SQLX_VERSION }}-${{ env.SQLX_FEATURES }}
|
key: ${{ runner.os }}-sqlx-${{ env.SQLX_VERSION }}-${{ env.SQLX_FEATURES }}
|
||||||
|
|
||||||
- name: Install sqlx-cli
|
- name: Install sqlx-cli
|
||||||
|
@ -78,6 +79,10 @@ jobs:
|
||||||
sudo apt-get install libpq-dev -y
|
sudo apt-get install libpq-dev -y
|
||||||
SKIP_DOCKER=true ./scripts/init_db.sh
|
SKIP_DOCKER=true ./scripts/init_db.sh
|
||||||
|
|
||||||
|
- name: Check sqlx-data.json is up-to-date
|
||||||
|
run: |
|
||||||
|
cargo sqlx prepare --check -- --bin zero2prod
|
||||||
|
|
||||||
- name: Run cargo test
|
- name: Run cargo test
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -111,7 +116,7 @@ jobs:
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
env:
|
env:
|
||||||
SQLX_VERSION: 0.5.5
|
SQLX_VERSION: 0.5.7
|
||||||
SQLX_FEATURES: postgres
|
SQLX_FEATURES: postgres
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -169,7 +174,7 @@ jobs:
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
env:
|
env:
|
||||||
SQLX_VERSION: 0.5.5
|
SQLX_VERSION: 0.5.7
|
||||||
SQLX_FEATURES: postgres
|
SQLX_FEATURES: postgres
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
Loading…
Reference in a new issue