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:
parent
1ca11e70e8
commit
1e0cedade0
7
.github/workflows/linux.yml
vendored
7
.github/workflows/linux.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user