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

Fix sqlx_todo CI checks (#415)

This commit is contained in:
Daniel T. Rodrigues
2021-03-03 11:37:17 -03:00
committed by GitHub
parent 75c19eb5c9
commit 7487a81e90
12 changed files with 262 additions and 26 deletions

View File

@ -49,6 +49,14 @@ jobs:
toolchain: stable
components: clippy
override: true
- 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
- name: clippy
uses: actions-rs/clippy-check@v1

View File

@ -37,6 +37,14 @@ jobs:
toolchain: ${{ matrix.version }}
override: true
- 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
- name: cargo check
uses: actions-rs/cargo@v1
timeout-minutes: 30