Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI action to test aws-sdk-services #2251

Merged
merged 3 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- action: check-aws-config
- action: check-aws-sdk-canary
- action: check-aws-sdk-cargo-deny
- action: check-aws-sdk-services
- action: check-only-aws-sdk-services
- action: check-aws-sdk-smoketest-docs-clippy-udeps
- action: check-aws-sdk-smoketest-unit-tests
- action: check-aws-sdk-standalone-integration-tests
Expand Down
4 changes: 4 additions & 0 deletions ci.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ check-aws-sdk-examples: generate-aws-sdk
check-aws-sdk-services: generate-aws-sdk
$(CI_ACTION) $@ $(ARGS)

.PHONY: check-only-aws-sdk-services
check-only-aws-sdk-services: generate-aws-sdk
$(CI_ACTION) $@ $(ARGS)

.PHONY: check-aws-sdk-smoketest-docs-clippy-udeps
check-aws-sdk-smoketest-docs-clippy-udeps: generate-aws-sdk-smoketest
$(CI_ACTION) $@ $(ARGS)
Expand Down
2 changes: 1 addition & 1 deletion tools/ci-build/scripts/check-aws-sdk-services
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cd aws-sdk
# Remove examples from workspace
sed -i '/"examples\//d' Cargo.toml

cargo check
cargo test --all-features
15 changes: 15 additions & 0 deletions tools/ci-build/scripts/check-only-aws-sdk-services
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

# this job runs `cargo check` only instead of `cargo test --all-features`

set -eux
cd aws-sdk

# Remove examples from workspace
sed -i '/"examples\//d' Cargo.toml

cargo check --all-targets --all-features