mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
fix db/basic
This commit is contained in:
9
.github/workflows/linux.yml
vendored
9
.github/workflows/linux.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user