Skip to content

Commit 9a0aff5

Browse files
committed
ci(coverage): exercise sql driver suites
1 parent 6890408 commit 9a0aff5

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
env:
1717
CARGO_INCREMENTAL: "0"
1818
RUSTFLAGS: "-Cinstrument-coverage"
19+
TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST: "true"
20+
TORRUST_TRACKER_CORE_RUN_POSTGRES_DRIVER_TEST: "true"
1921

2022
steps:
2123
- name: Checkout repository

.github/workflows/generate_coverage_pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
env:
1717
CARGO_INCREMENTAL: "0"
1818
RUSTFLAGS: "-Cinstrument-coverage"
19+
TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST: "true"
20+
TORRUST_TRACKER_CORE_RUN_POSTGRES_DRIVER_TEST: "true"
1921

2022
steps:
2123
- name: Checkout repository

.github/workflows/testing.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ jobs:
137137
name: Run MySQL Database Tests
138138
run: TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST=true cargo test --package bittorrent-tracker-core
139139

140+
- id: database-postgresql
141+
name: Run PostgreSQL Database Tests
142+
run: TORRUST_TRACKER_CORE_RUN_POSTGRES_DRIVER_TEST=true cargo test --package bittorrent-tracker-core
143+
140144
e2e:
141145
name: E2E
142146
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)