-
Notifications
You must be signed in to change notification settings - Fork 90
chore: E2E tests GitHub action #1175
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3e3ae65
add github action for e2e
jeromevdl 9dff5d0
java config
jeromevdl 888cb4e
java version
jeromevdl 5583506
logback version 1.3 compatible jdk8
jeromevdl 100f73e
random name for ddb table
jeromevdl 25affe0
run e2e just on master
jeromevdl 958f7df
use github env
jeromevdl ec6d71c
add java 17 to the e2e
jeromevdl ff834d2
logback 1.3.7
jeromevdl d24b250
adding parameters e2e tests
jeromevdl f9846d0
Merge branch 'master' into e2e-tests-github
jeromevdl 567935e
change master to main
jeromevdl f83b090
Merge branch 'main' into e2e-tests-github
jeromevdl cb4c7da
Update pom.xml
jeromevdl c53cc0a
Merge branch 'main' into e2e-tests-github
jeromevdl dd30d2f
Update powertools-e2e-tests/pom.xml
jeromevdl 84c535b
Merge branch 'main' into e2e-tests-github
jeromevdl d0f1e92
Merge branch 'main' into e2e-tests-github
jeromevdl 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,48 @@ | ||
name: Run end-to-end tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: [main] | ||
paths: # add other modules when there are under e2e tests | ||
- 'powertools-e2e-tests/**' | ||
- 'powertools-core/**' | ||
- 'powertools-serialization/**' | ||
- 'powertools-logging/**' | ||
- 'powertools-tracing/**' | ||
- 'powertools-idempotency/**' | ||
- 'powertools-parameters/**' | ||
- 'powertools-metrics/**' | ||
- 'pom.xml' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
e2e: | ||
jeromevdl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
java: [ 8, 11, 17 ] | ||
name: End-to-end tests java${{ matrix.java }} | ||
env: | ||
JAVA_VERSION: ${{ matrix.java }} | ||
AWS_DEFAULT_REGION: eu-west-1 | ||
permissions: | ||
id-token: write # needed to interact with GitHub's OIDC Token endpoint. | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: ${{ matrix.java }} | ||
cache: maven | ||
- name: Setup AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1.6.1 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Run e2e test with Maven | ||
run: mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml |
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
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.