Skip to content

Commit

Permalink
ci: update CI to run the cargo test using 1 thread ONLY
Browse files Browse the repository at this point in the history
this was done as there was issue with making the tests run in parallel the problem is that the test are very flaky
  • Loading branch information
Atheer2104 committed Mar 17, 2024
1 parent 9fb204f commit fa0ac58
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
# sqlx cli features
SQLX_FEATURES: "rustls,postgres"


jobs:
test:
name: Tests
Expand Down Expand Up @@ -42,8 +41,7 @@ jobs:
# this key will be added to tha automatic 'job'-based cache key, this key can also be used in further different jobs
key: "sqlx-${{ env.SQLX_VERSION }}"
- name: Install sqlx cli
run:
cargo install sqlx-cli
run: cargo install sqlx-cli
--version=${{ env.SQLX_VERSION }}
--features=${{env.SQLX_FEATURES }}
--no-default-features
Expand All @@ -58,9 +56,7 @@ jobs:
run: |
cargo sqlx prepare --workspace --check
- name: Run tests
run: cargo test


run: cargo test -- --test-threads=1

fmt:
name: Rustfmt
Expand Down

0 comments on commit fa0ac58

Please sign in to comment.