-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add integration test prerequisites to CI, fix rpc tests
chore: update postgres service, fmt chore(ci): use secrets for mainnet & devnet RPC urls chore(ci): set RUST_LOG to `trace` feat(integration_tests): init env logger in `test_asset_decompress` chore(integration_tests): make compressed `test_asset_decompress` traced chore(ci): add postgres port mapping
- Loading branch information
1 parent
a5ba664
commit 1408fd9
Showing
6 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,19 @@ jobs: | |
test: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres:14-alpine | ||
ports: | ||
- 5432:5432 | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
@@ -115,4 +128,8 @@ jobs: | |
key: ${{ steps.cache-cargo.outputs.cache-primary-key }} | ||
|
||
- name: Run tests | ||
run: cargo test --features integration_tests -- --nocapture --quiet | ||
env: | ||
DATABASE_TEST_URL: "postgres://postgres:[email protected]:5432/postgres" | ||
DEVNET_RPC_URL: ${{ secrets.SOLANA_DEVNET_RPC_URL }} | ||
MAINNET_RPC_URL: ${{ secrets.SOLANA_MAINNET_RPC_URL }} | ||
run: cargo test --features integration_tests -- --nocapture |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters