mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
ci: fix sqlx test
This commit is contained in:
parent
1ca11e70e8
commit
1e0cedade0
7
.github/workflows/linux.yml
vendored
7
.github/workflows/linux.yml
vendored
@ -16,10 +16,6 @@ jobs:
|
|||||||
name: ${{ matrix.version }}
|
name: ${{ matrix.version }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
|
||||||
CI: 1
|
|
||||||
CARGO_INCREMENTAL: false
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -38,9 +34,8 @@ jobs:
|
|||||||
DATABASE_URL: sqlite://./todo.db
|
DATABASE_URL: sqlite://./todo.db
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install sqlite3
|
sudo apt-get update && sudo apt-get install sqlite3
|
||||||
cd basics/todo
|
|
||||||
sqlx database create
|
sqlx database create
|
||||||
chmod a+rwx todo.db
|
chmod a+rwx ./todo.db
|
||||||
sqlx migrate run
|
sqlx migrate run
|
||||||
|
|
||||||
- name: cargo check
|
- name: cargo check
|
||||||
|
@ -10,7 +10,7 @@ A simple Todo project using a SQLite database.
|
|||||||
|
|
||||||
All instructions assume you have changed into the examples workspace root:
|
All instructions assume you have changed into the examples workspace root:
|
||||||
|
|
||||||
```pwd
|
```console
|
||||||
$ pwd
|
$ pwd
|
||||||
.../examples
|
.../examples
|
||||||
```
|
```
|
||||||
@ -26,8 +26,8 @@ cargo install sqlx-cli --no-default-features --features=rustls,sqlite
|
|||||||
Then to create and set-up the database run:
|
Then to create and set-up the database run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sqlx database create
|
sqlx database create --database-url=sqlite://./todo.db
|
||||||
sqlx migrate run
|
sqlx migrate run --database-url=sqlite://./todo.db
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run The Application
|
## Run The Application
|
||||||
|
Loading…
Reference in New Issue
Block a user