Update GitHub workflow
This commit is contained in:
6
.github/workflows/general.yml
vendored
6
.github/workflows/general.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
# Label used to access the service container
|
# Label used to access the service container
|
||||||
postgres:
|
postgres:
|
||||||
# Docker Hub image
|
# Docker Hub image
|
||||||
image: postgres:14
|
image: postgres
|
||||||
# Environment variables scoped only for the `postgres` element
|
# Environment variables scoped only for the `postgres` element
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
- name: Check that queries are fresh
|
- name: Check that queries are fresh
|
||||||
run: cargo sqlx prepare --workspace --check -- --all-targets
|
run: cargo sqlx prepare --check --workspace
|
||||||
|
|
||||||
# `fmt` container job
|
# `fmt` container job
|
||||||
fmt:
|
fmt:
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
|
|||||||
Reference in New Issue
Block a user