Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
# Native-store PRs are currently stacked on the outbound HTTP specification.
branches: [main, docs/outbound-http-spec]

permissions:
contents: read
Expand Down Expand Up @@ -114,6 +115,17 @@ jobs:
- name: Run workspace tests
run: cargo test --workspace --all-targets

- name: Native store dependency isolation
run: bash scripts/check_native_store_dependency_contract.sh

- name: Native AWS provider and startup contracts (loopback only)
run: |
cargo test --offline --locked -p edgezero-store-aws --no-default-features --features appconfig-agent --lib
cargo test --offline --locked -p edgezero-store-aws --no-default-features --features secrets-manager --lib
cargo test --offline --locked -p edgezero-store-aws --no-default-features --features dynamodb-kv --lib
cargo test --offline --locked -p edgezero-store-aws --all-features --lib
scripts/run_test_nonzero.sh production_runner_loads_envelope_and_real_sdk_secret_before_serving_mixed_stores cargo test --offline --locked -p edgezero-adapter-axum --features aws-stores,test-utils --test native_aws_startup

- name: Bundled demo logging contract
run: scripts/run_test_nonzero.sh demo_respects_off_without_hiding_terminal_errors cargo test --offline --locked -p edgezero-cli --features demo-example --test demo_logging

Expand Down Expand Up @@ -147,6 +159,24 @@ jobs:
bash scripts/check_adapter_feature_matrix.sh "${adapter}" native
done

- name: Generated native AWS startup (loopback only)
env:
EDGEZERO_GENERATED_TEST_TARGET_DIR: ${{ github.workspace }}/target
run: scripts/run_test_nonzero.sh --ignored generated_cli_build_features_and_native_aws_startup_are_proven_together cargo test --offline --locked -p edgezero-cli --test native_store_generated_proof

- name: Generated native DynamoDB KV (loopback only)
env:
EDGEZERO_GENERATED_TEST_TARGET_DIR: ${{ github.workspace }}/target
run: scripts/run_test_nonzero.sh --ignored generated_cli_default_off_and_enabled_dynamodb_crud_list_ttl_restart cargo test --offline --locked -p edgezero-cli --test dynamodb_generated_proof

- name: Native AWS integration runner tests
run: node --test scripts/native_aws_test_admin.test.mjs scripts/run_native_aws_integration.test.mjs

- name: Generated native AWS independent service contracts
env:
EDGEZERO_GENERATED_TEST_TARGET_DIR: ${{ github.workspace }}/target
run: node scripts/run_native_aws_integration.mjs

- name: Verify a generated project compiles
run: scripts/run_test_nonzero.sh --ignored generated_workspace_compiles cargo test --offline --locked -p edgezero-cli --test generated_project_builds

Expand Down
Loading