Skip to content

Commit

Permalink
Compile tests in the Build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Lun4m committed Jun 17, 2024
1 parent 1e5421f commit 3df14f3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,14 @@ jobs:
run: cargo fmt --all -- --check

- name: Build
run: cargo build --workspace
run: cargo build --workspace --tests

- name: Lint
run: cargo clippy --workspace -- -D warnings

- name: Prepare PostgreSQL
# Runs a script that creates a PostgreSQL table and populates it with data
run: target/debug/prepare_db

# Run integration tests
- name: Run unit and integration tests
run: cargo test --no-fail-fast -- --nocapture --test-threads=1

Expand All @@ -72,16 +70,16 @@ jobs:
# run: target/debug/prepare_db api

# - name: API integration tests
# run: cargo test --test api_integration_test -- --nocapture --test-threads=1
# run: cargo test --test api -- --nocapture --test-threads=1

# - name: Prepare PostgreSQL for ingestion tests
# run: target/debug/prepare_db ingestion

# - name: Ingestions integration tests
# run: cargo test --test ingestion_integration_test -- --nocapture --test-threads=1
# run: cargo test --test ingestion -- --nocapture --test-threads=1

# - name: Prepare PostgreSQL for E2E tests
# run: target/debug/prepare_db e2e
# run: target/debug/prepare_db end-to-end

# - name: E2E integration tests
# run: cargo test --test end-to-end_integration_test -- --nocapture --test-threads=1
# run: cargo test --test end-to-end -- --nocapture --test-threads=1

0 comments on commit 3df14f3

Please sign in to comment.