Skip to content

Commit

Permalink
feat(ci/test): revise test job for mariadb
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro-Alessio Gierens <[email protected]>
  • Loading branch information
gierens committed Sep 12, 2024
1 parent 7a01c1e commit 882f96c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,17 @@ on:
env:
CARGO_TERM_COLOR: always
SQLX_VERSION: 0.7.3
SQLX_FEATURES: "rustls,postgres"
SQLX_FEATURES: "rustls,mysql"

jobs:
test:
name: test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: getong/[email protected]
with:
mysql database: 'lrzcc'
mysql root password: 'password'
- name: Check out repository code
uses: actions/checkout@v4
- name: Rust Cache Action
Expand All @@ -49,8 +44,8 @@ jobs:
--features ${{ env.SQLX_FEATURES }}
--no-default-features
--locked
- name: Install postgresql-client and mold
run: sudo apt update && sudo apt install postgresql-client mold -y
- name: Install mariadb-client and mold
run: sudo apt update && sudo apt install mariadb-client mold -y
- name: Migrate database
run: SKIP_DOCKER=true ./scripts/init_db.sh
- name: Check sqlx offline data is up to date
Expand Down

0 comments on commit 882f96c

Please sign in to comment.