chore(v2): Split parameters module up by parameter provider #415
Workflow file for this run
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
name: Run end-to-end tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- v2 | |
paths: # add other modules when there are under e2e tests | |
- 'powertools-e2e-tests/**' | |
- 'powertools-batch/**' | |
- 'powertools-core/**' | |
- 'powertools-common/**' | |
- 'powertools-idempotency/**' | |
- 'powertools-large-message/**' | |
- 'powertools-logging/**' | |
- 'powertools-metrics/**' | |
- 'powertools-parameters/**' | |
- 'powertools-serialization/**' | |
- 'powertools-tracing/**' | |
- 'pom.xml' | |
- '.github/workflows/**' | |
pull_request: | |
branches: | |
- main | |
- v2 | |
paths: | |
- 'powertools-e2e-tests/**' | |
jobs: | |
e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
java: [ 8, 11, 17, 21 ] | |
name: End-to-end tests java${{ matrix.java }} | |
env: | |
AWS_DEFAULT_REGION: eu-west-1 | |
JAVA_VERSION: ${{ matrix.java }} | |
permissions: | |
id-token: write # needed to interact with GitHub's OIDC Token endpoint. | |
contents: read | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup java | |
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 | |
with: | |
distribution: 'corretto' | |
java-version: ${{ matrix.java }} | |
cache: maven | |
- name: Setup AWS credentials | |
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }} | |
aws-region: ${{ env.AWS_DEFAULT_REGION }} | |
- name: Build with Maven Java 8 | |
if: ${{ matrix.java == '8' }} # If 8 exclude the examples directory | |
run: mvn -DskipTests install --file pom.xml -pl '!software.amazon.lambda.examples:powertools-examples-idempotency,!software.amazon.lambda.examples:powertools-examples-batch,!software.amazon.lambda.examples:powertools-examples-cloudformation,!software.amazon.lambda.examples:powertools-examples-core-utilities-cdk,!software.amazon.lambda.examples:powertools-examples-core-utilities-sam,!software.amazon.lambda.examples:powertools-examples-core-utilities-serverless,!software.amazon.lambda.examples:powertools-examples-core-utilities-terraform,!software.amazon.lambda.examples:powertools-examples-parameters,!software.amazon.lambda.examples:powertools-examples-serialization,!software.amazon.lambda.examples:powertools-examples-validation,!software.amazon.lambda.examples:cdk,!software.amazon.lambda:powertools-examples' | |
- name: Build with Maven | |
if: ${{ matrix.java != '8' }} # If not 8 don't exclude the examples directory | |
run: mvn -DskipTests install --file pom.xml | |
- name: Run e2e test with Maven | |
run: mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml |