Skip to content

Commit dd0995e

Browse files
committed
fix: ci
1 parent f9cb457 commit dd0995e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
- name: Run clippy
6363
run: |
64-
cargo lint
64+
cargo clippy
6565
cargo run -p rules_check
6666
6767
check-dependencies:
@@ -82,6 +82,15 @@ jobs:
8282
test:
8383
name: Test
8484
runs-on: ${{ matrix.os }}
85+
services:
86+
postgres:
87+
image: postgres:latest
88+
env:
89+
POSTGRES_USER: postgres
90+
POSTGRES_PASSWORD: postgres
91+
POSTGRES_DB: postgres
92+
ports:
93+
- 5432:5432
8594
strategy:
8695
matrix:
8796
include:
@@ -116,9 +125,9 @@ jobs:
116125
env:
117126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118127
- name: Run the analyser codegen
119-
run: cargo codegen analyser
128+
run: cargo run -p xtask_codegen -- analyser
120129
- name: Run the configuration codegen
121-
run: cargo codegen-configuration
130+
run: cargo run -p xtask_codegen -- configuration
122131
- name: Check for git diff
123132
run: |
124133
if [[ `git status --porcelain` ]]; then

justfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ test-doc:
104104
# Alias for `cargo clippy`, it runs clippy on the whole codebase
105105
lint:
106106
cargo clippy
107+
cargo run -p rules_check
107108

108109
lint-fix:
109110
cargo clippy --fix
111+
cargo run -p rules_check
110112

111113
# When you finished coding, run this command to run the same commands in the CI.
112114
# ready:

0 commit comments

Comments
 (0)