1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

ci: fix sqlx test

This commit is contained in:
Rob Ede 2023-07-09 02:08:43 +01:00
parent 1ca11e70e8
commit 1e0cedade0
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 4 additions and 9 deletions

View File

@ -16,10 +16,6 @@ jobs:
name: ${{ matrix.version }}
runs-on: ubuntu-latest
env:
CI: 1
CARGO_INCREMENTAL: false
steps:
- uses: actions/checkout@v3
@ -38,9 +34,8 @@ jobs:
DATABASE_URL: sqlite://./todo.db
run: |
sudo apt-get update && sudo apt-get install sqlite3
cd basics/todo
sqlx database create
chmod a+rwx todo.db
chmod a+rwx ./todo.db
sqlx migrate run
- name: cargo check

View File

@ -10,7 +10,7 @@ A simple Todo project using a SQLite database.
All instructions assume you have changed into the examples workspace root:
```pwd
```console
$ pwd
.../examples
```
@ -26,8 +26,8 @@ cargo install sqlx-cli --no-default-features --features=rustls,sqlite
Then to create and set-up the database run:
```sh
sqlx database create
sqlx migrate run
sqlx database create --database-url=sqlite://./todo.db
sqlx migrate run --database-url=sqlite://./todo.db
```
## Run The Application