Skip to content

Commit

Permalink
ci: 🏗️ Improve the CI with sqlx and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fungiboletus committed Jan 16, 2024
1 parent 05e1f9a commit e636ff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo install sqlx-cli --no-default-features --features sqlite
- run: cargo sqlx prepare
- run: touch test.db && cargo sqlx migrate run --source src/storage/sqlite/migrations --database-url sqlite://test.db && cargo sqlx prepare --database-url sqlite://test.db
- run: cargo clippy --verbose
- run: cargo build --verbose
- run: cargo test --verbose
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
env:
SKIP: no-commit-to-branch

0 comments on commit e636ff5

Please sign in to comment.