Skip to content

Commit

Permalink
workflows: fix clippy failing to read database_url
Browse files Browse the repository at this point in the history
SQLx compile-time-checks need DATABASE_URL to be set to use query
macros. Since it doesn't actually connect to the database, an in-memory
SQLite should be fine.
  • Loading branch information
ivinjabraham committed Feb 28, 2025
1 parent 55d6e13 commit e7b271b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
env:
DATABASE_URL: "sqlite::memory:"
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit e7b271b

Please sign in to comment.