generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 36
Add integration tests workflow #136
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
Merged
reyhankoyun
merged 6 commits into
aws:main
from
reyhankoyun:add-integration-tests-workflow
Oct 17, 2025
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f203d36
Add integration tests workflow and enable parallel test execution
reyhankoyun 7d0b42f
Update safe-to-test label to match AWS conventions
reyhankoyun 6e684a7
Simplify workflow condition to trust-based model
reyhankoyun 3a9a4f3
Simplify integration tests for sequential execution
reyhankoyun 41dc96b
Remove the cache
simonmarty c7e7088
Add reopened and ready_for_review triggers to integration tests workflow
reyhankoyun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Integration Tests | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request_target: | ||
| types: [opened, synchronize, labeled] | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| integration-tests: | ||
| runs-on: ubuntu-latest | ||
reyhankoyun marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Run if: | ||
| # 1. Manual trigger or push to main, OR | ||
| # 2. PR from trusted author (COLLABORATOR), OR | ||
| # 3. PR from untrusted author with "safe to test" label | ||
| if: | | ||
| github.event_name != 'pull_request_target' || | ||
| github.event.pull_request.author_association == 'COLLABORATOR' || | ||
| contains(github.event.pull_request.labels.*.name, 'safe-to-test') | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
reyhankoyun marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | ||
|
|
||
| - name: Install Rust | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
|
|
||
| - name: Configure AWS credentials | ||
| uses: aws-actions/configure-aws-credentials@v5 | ||
| with: | ||
| role-to-assume: ${{ secrets.ROLE_ARN }} | ||
| role-session-name: secrets-manager-agent-ci-${{ github.run_id }} | ||
| aws-region: us-east-1 | ||
|
|
||
| - name: Build agent binary | ||
| run: cargo build | ||
|
|
||
| - name: Run integration tests | ||
| run: | | ||
| cd integration-tests | ||
| cargo test -- --test-threads=1 | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.