Skip to content

Commit 58266ed

Browse files
committed
workflows: fix clippy failing to read database_url
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.
1 parent 6e33c0a commit 58266ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
clippy:
99
name: Clippy
1010
runs-on: ubuntu-latest
11+
env:
12+
DATABASE_URL: "sqlite::memory:"
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@v4

0 commit comments

Comments
 (0)