1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

fix db/basic

This commit is contained in:
Rob Ede
2022-02-06 08:19:35 +00:00
parent 8ae47c8cda
commit a4d43c0ff8
12 changed files with 112 additions and 103 deletions

View File

@ -39,10 +39,11 @@ jobs:
- name: create test db for sqlx
run: |
sudo apt-get update && sudo apt-get install sqlite3
cd database_interactions/sqlx_todo
cp .env.example .env
cat schema.sql | sqlite3 test.db
chmod a+rwx test.db
cargo install sqlx-cli --no-default-features --features=rustls,sqlite
cd basics/todo
sqlx database create
chmod a+rwx todo.db
sqlx migrate run
- name: cargo check
uses: actions-rs/cargo@v1